Yahoo Geo
Technologies               Things you might not know about.




   Chris&an Heilmann, Tech Talk ‐ Sunnyvale, Ca,...
Geolocation is the
new thing.
It is also big
business.
Yahoo has amazing
geo technology
products.
And they work
localised to outside
the US.
Problem is that geo
is hard-core Math.
There are a few
different ingredients
to playing with geo
location.
Finding the current location.
Finding the current location.
Turning a location into a
place.
Finding the current location.
Turning a location into a
place.
Finding a geographical
hierarchy.
Finding the current location.
Turning a location into a
place.
Finding a geographical
hierarchy.
Geo-tagging information.
Finding the current location.
Turning a location into a
place.
Finding a geographical
hierarchy.
Geo-tagging information.
...
Finding the current location.

                                Finding the current
                                locatio...
Finding the current location.



                  sniffing.
                  The creepy way - IP
Finding the current location.
Finding the current location.




                                h=p://isithackday.com/hacks/geo/js‐loca&on.html
Finding the current location.

                                The problem with IP
                                sniffin...
Finding the current location.

                                The other problem:
                                it is no...
Finding the current location.

                                The non-creepy and
                                more acc...
Finding the current location.




                                Firefox/(Mobile) Safari/Chrome (dev build)
Finding the current location.

                                Another way is of
                                course to...
Finding the current location.

                                Plazes, FireEagle,
                                Twitter,...
Problem: none of
this works in YAP
applications.
Problem: none of
this works in YAP
applications.
Turning a location into a place.

                                   Having a latitude
                                   ...
Turning a location into a place.

                                   The same lat/lon
                                   p...
Turning a location into a place.

                                   This is why we need
                                 ...
Turning a location into a place.

                                   This is called
                                   rev...
Turning a location into a place.

                                   My personal
                                   favour...
Turning a location into a place.




                                   h=p://www.flickr.com/services/api/flickr.places.findB...
Turning a location into a place.

                                   You can use this
                                   u...
Turning a location into a place.

                                   To get more in-
                                   de...
Turning a location into a place.
Turning a location into a place.
Turning a location into a place.

                         Whoa!!!

               WOEID
Finding a geographical hierarchy.

                                    What’s around a
                                   ...
Turning a location into a place.

                                   GeoPlanet gives
                                   yo...
Finding a geographical hierarchy.




                                    h=p://isithackday.com/geoplanet‐explorer/?woeid=...
Finding a geographical hierarchy.




                                    h=p://isithackday.com/geoplanet‐explorer/geodril...
Finding a geographical hierarchy.
Finding the current location.

                                Putting it all
                                together, we...
What if you have no
                           location but only a
Geo-tagging information.




                          ...
Geo-tagging information.




                           h=p://developer.yahoo.com/geo/placemaker/
Placemaker takes a
                           text, or a web URL
Geo-tagging information.




                           a...
select * from 
Geo-tagging information.



                           geo.placemaker where 
                           doc...
select * from geo.placemaker where 
Geo-tagging information.


                           documentURL =
                  ...
Placemaker returns
                           places and
Geo-tagging information.




                           reference...
To see Placemaker
                           in action, check out
Geo-tagging information.




                           ...
Geo-tagging information.




                           h=p://icant.co.uk/geomaker/
Geo-tagging information.
Geo-tagging information.




                           Geonames ID
                           ISO
                       ...
Geo-tagging information.




Concordance
Geo-tagging information.




                           http://isithackday.com/hacks/geo/geosetta.php
Displaying geo
Displaying geo information.



                              information is done
                          ...
By far the easiest
Displaying geo information.



                              way to build a very
                      ...
<img src=”h=p://maps.google.com/maps/api/
                              sta&cmap?
Displaying geo information.


          ...
If you want to use
Displaying geo information.



                              Yahoo Maps with
                          ...
Displaying geo information.
Displaying geo information.
If you want to use
Displaying geo information.



                              any map provider
                         ...
Displaying geo information.




h=p://www.mapstrac&on.com/
Putting it all
                 together...
Summa summarum




                 http://isithackday.com/hacks/geo/yql-geo-l...
And the hacking
continues...



   h=p://delicious.com/tag/geotoys
 Chris&an Heilmann
 h=p://wait‐&ll‐i.com             Cheers
 h=p://developer‐evangelism.com
 h=p://twi=er.com/codepo8   
Introduction to Geo Technologies
Introduction to Geo Technologies
Introduction to Geo Technologies
Upcoming SlideShare
Loading in...5
×

Introduction to Geo Technologies

4,753

Published on

An introduction to all the geo technologies provided by Yahoo and how to use them to solve common geo problems.

1 Comment
9 Likes
Statistics
Notes
No Downloads
Views
Total Views
4,753
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
68
Comments
1
Likes
9
Embeds 0
No embeds

No notes for slide

Introduction to Geo Technologies

  1. 1. Yahoo Geo Technologies Things you might not know about. Chris&an Heilmann, Tech Talk ‐ Sunnyvale, Ca,  8/4/2010
  2. 2. Geolocation is the new thing.
  3. 3. It is also big business.
  4. 4. Yahoo has amazing geo technology products.
  5. 5. And they work localised to outside the US.
  6. 6. Problem is that geo is hard-core Math.
  7. 7. There are a few different ingredients to playing with geo location.
  8. 8. Finding the current location.
  9. 9. Finding the current location. Turning a location into a place.
  10. 10. Finding the current location. Turning a location into a place. Finding a geographical hierarchy.
  11. 11. Finding the current location. Turning a location into a place. Finding a geographical hierarchy. Geo-tagging information.
  12. 12. Finding the current location. Turning a location into a place. Finding a geographical hierarchy. Geo-tagging information. Displaying geo information.
  13. 13. Finding the current location. Finding the current location happens in different ways.
  14. 14. Finding the current location. sniffing. The creepy way - IP
  15. 15. Finding the current location.
  16. 16. Finding the current location. h=p://isithackday.com/hacks/geo/js‐loca&on.html
  17. 17. Finding the current location. The problem with IP sniffing is accuracy.
  18. 18. Finding the current location. The other problem: it is not reliable.
  19. 19. Finding the current location. The non-creepy and more accurate way - the W3C geolocation API.
  20. 20. Finding the current location. Firefox/(Mobile) Safari/Chrome (dev build)
  21. 21. Finding the current location. Another way is of course to get location information from the user’s social presence.
  22. 22. Finding the current location. Plazes, FireEagle, Twitter, Yahoo, Flickr, Foursquare, Gowalla, Brightkite, Google Buzz/ Latitude, Dopplr...
  23. 23. Problem: none of this works in YAP applications.
  24. 24. Problem: none of this works in YAP applications.
  25. 25. Turning a location into a place. Having a latitude and longitude is fine and dandy but it is ambiguous.
  26. 26. Turning a location into a place. The same lat/lon pair could be a lot of things - the centre of a town, a point of interest...
  27. 27. Turning a location into a place. This is why we need to turn lat/lon into something that is human readable.
  28. 28. Turning a location into a place. This is called reverse geocoding and there are a few services for it out there.
  29. 29. Turning a location into a place. My personal favourite (as it works world-wide) is the Flickr reverse geocoder.
  30. 30. Turning a location into a place. h=p://www.flickr.com/services/api/flickr.places.findByLatLon.html
  31. 31. Turning a location into a place. You can use this using YQL: select * from flickr.places where lat=51.5142271 and lon=‐0.1289602
  32. 32. Turning a location into a place. To get more in- depth data, use flickr and Yahoo Geo: select * from geo.places where woeid in (   select place.woeid from flickr.places    where lat=51.5142271 and lon=‐0.1289602 )
  33. 33. Turning a location into a place.
  34. 34. Turning a location into a place.
  35. 35. Turning a location into a place. Whoa!!! WOEID
  36. 36. Finding a geographical hierarchy. What’s around a certain location? h=p://developer.yahoo.com/geo/
  37. 37. Turning a location into a place. GeoPlanet gives you hierarchies: Parent, Ancestors, Children, Siblings, Neigbours, BelongTos.
  38. 38. Finding a geographical hierarchy. h=p://isithackday.com/geoplanet‐explorer/?woeid=615702
  39. 39. Finding a geographical hierarchy. h=p://isithackday.com/geoplanet‐explorer/geodrilldown.php
  40. 40. Finding a geographical hierarchy.
  41. 41. Finding the current location. Putting it all together, we can get this: h=p://isithackday.com/hacks/geo/geotest.php
  42. 42. What if you have no location but only a Geo-tagging information. resource?
  43. 43. Geo-tagging information. h=p://developer.yahoo.com/geo/placemaker/
  44. 44. Placemaker takes a text, or a web URL Geo-tagging information. and extracts the geographical information from it.
  45. 45. select * from  Geo-tagging information. 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"
  46. 46. select * from geo.placemaker where  Geo-tagging information. 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=""
  47. 47. Placemaker returns places and Geo-tagging information. references - you can use these to enhance texts with geo information.
  48. 48. To see Placemaker in action, check out Geo-tagging information. the GeoMaker hack. h=p://github.com/codepo8/geomaker
  49. 49. Geo-tagging information. h=p://icant.co.uk/geomaker/
  50. 50. Geo-tagging information.
  51. 51. Geo-tagging information. Geonames ID ISO FIPS INSEE JGDC IATA ICAO WOEID
  52. 52. Geo-tagging information. Concordance
  53. 53. Geo-tagging information. http://isithackday.com/hacks/geo/geosetta.php
  54. 54. Displaying geo Displaying geo information. information is done via Map APIs
  55. 55. By far the easiest Displaying geo information. way to build a very simple map is to use the Google static maps API.
  56. 56. <img src=”h=p://maps.google.com/maps/api/ sta&cmap? Displaying geo information. 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=””>
  57. 57. If you want to use Displaying geo information. Yahoo Maps with the data returned from the earlier YQL calls here’s the code:
  58. 58. Displaying geo information.
  59. 59. Displaying geo information.
  60. 60. If you want to use Displaying geo information. any map provider easily without deep-diving into an API, use Mapstraction.
  61. 61. Displaying geo information. h=p://www.mapstrac&on.com/
  62. 62. Putting it all together... Summa summarum http://isithackday.com/hacks/geo/yql-geo-library/
  63. 63. And the hacking continues... h=p://delicious.com/tag/geotoys
  64. 64.  Chris&an Heilmann  h=p://wait‐&ll‐i.com  Cheers  h=p://developer‐evangelism.com  h=p://twi=er.com/codepo8   
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×