View
2.750
Download
1
Embed Size (px)
DESCRIPTION
Vortrag auf der WebTechCon wie man mit Geo Technologie den Ort von Webseitenbesuchern herausfindet und wie man geographische Inhalte in Webseiten findet.
Wie, wo, wer und was? Geolocation im Web
Chris&an HeilmannWebTechCon, Mainz, Germany, October 2010
Unsere Nutzer sind mehr und mehr mobil.
Geographische Inhalte
> Generelle Inhalte
Wo gehts denn hier zum Bahnhof?
Was gibt es in der Umgebung meines Hotels?
Wo kann man hier aufs Klo?
Laptop + Handy + Internet kann alles das beantworten.
Geo Probleme die wir loesen wollen.
Besucher finden.
Ein Weg ist IP sniffing.
http://isithackday.com/hacks/geo/js-location.html
Ein Problem ist, das die IP weit weg sein kann.
Ausserdem kann ich meine IP aendern.
W3C Geo API > IP!
Firefox/(Mobile) Safari/Chrome
W3C API = Ort, und Ortsaenderungen.
Vorsicht Falle: Handy Batterie!
Soziale Netzwerke.
Plazes, FireEagle, Twitter, Yahoo, Flickr, Foursquare, Gowalla, Brightkite, Google Buzz/Latitude, Dopplr, Facebook...
Wichtig: Zeit und Update Frequenz.
Latitude, Longitude
34.0017, -84.4710
Marietta, Georgia, USA
Reverse Geocoding
http://www.flickr.com/services/api/flickr.places.findByLatLon.html
Mittels YQL:
select * from flickr.places wherelat=51.5142271 and lon=-0.1289602
Mehr Information mittels YQL und Yahoo GeoPlanet:
select * from geo.places where woeid in ( select place.woeid from flickr.places where lat=51.5142271 and lon=-0.1289602)
http://isithackday.com/hacks/geo/placefinder/
WOEID = Definition
Wo kommst denn du her?
Geographische Hierarchien.
h=p://developer.yahoo.com/geo/
GeoPlanet hat Hierarchien:
Parent, Ancestors, Children, Siblings, Neigbours, BelongTos.
http://isithackday.com/geoplanet-explorer/?woeid=615702
http://isithackday.com/geoplanet-explorer/geodrilldown.php
Mit diesem Beispiel bekommen wir eine Menge Inhalte.
http://isithackday.com/hacks/geo/geotest.php
Marietta, Georgia, USA
Worte zu Orte?
Uebersetzung gesucht.
h=p://developer.yahoo.com/geo/placemaker/
Placemaker findet Orte in Texten, Web Adressen und RSS.
select * from geo.placemaker where documentContent = "Hey I am in Atlanta! I came here from London and will travel onwards to Las Vegas and Sao Paulo" and documentType="text/plain"
select * from geo.placemaker where documentURL ="h=p://icant.co.uk" and documentType="text/html" and appid=""
select * from geo.placemaker where documentURL ="h=p://newsrss.bbc.co.uk/rss/newsonline_uk_edi&on/front_page/rss.xml"and documentType="text/rss" and appid=""
Placemaker versteht verschiedene Sprachen.
Mainz
Mayence
Placemaker erkennt auch Namen als “falsche Orte”
Paris Hilton
Jack London
Orte und Referenzen kommen als Ergebnisse zurueck.
Am einfachsten ist es, GeoMaker auszuprobieren.
http://github.com/codepo8/geomaker
Geonames IDISOFIPSINSEEJGDCIATAICAOWOEID
Concordance
http://isithackday.com/hacks/geo/geosetta.php
Geo Daten anzeigen.
Statische Karten.
<img src=”http://maps.google.com/maps/api/staticmap?sensor=false&size=200x200&maptype=roadmap&key=YOUR_MAP_KEY&markers=color:blue|label:1|37.4447,-122.161&markers=color:blue|label:2|37.3385,-121.886&markers=color:blue|label:3|37.3716,-122.038&markers=color:blue|label:4|37.7792,-122.42” alt=””>
YQL + Yahoo Maps
Mehrere Karten verwenden?
All together now...
http://isithackday.com/hacks/geo/yql-geo-library/
http://isithackday.com/hacks/geo/addmap.html
http://isithackday.com/hacks/geo/addmap.html
Christian Heilmann http://wait-till-i.com http://developer-evangelism.com http://twitter.com/codepo8
Thanks!