Your SlideShare is downloading. ×
0
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)

5,386

Published on

"(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)"; presented on March 10th. 2010 at the London Twitter DevNest 7, at the Sun Customer Briefing Centre in London.

"(Almost) Everything You Ever Wanted To Know About Geo (with WOEIDs)"; presented on March 10th. 2010 at the London Twitter DevNest 7, at the Sun Customer Briefing Centre in London.

Published in: Technology, Business
0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
5,386
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
27
Comments
0
Likes
5
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. London Twitter #devnest 7, March 2010<br />(Almost) Everything You Ever WantedTo Know About Geo (with WOEIDs)…<br />Gary Gale, Yahoo! Geo Technologies<br />
  • 2. the agenda<br />louisvolant on Flickr : http://www.flickr.com/photos/27048731@N03/4003756731/<br />
  • 3. the agenda<br /><ul><li>the hello
  • 4. the WOEIDs
  • 5. the WTF?
  • 6. the background
  • 7. the geocoding and the geoparsing
  • 8. the frustration
  • 9. the WOEIDsredux
  • 10. the APIs
  • 11. the demo
  • 12. the goodbye</li></ul>3<br />
  • 13. 4<br />KELLYLEEBARRETT on Flickr : http://www.flickr.com/photos/kellylee/4177529745/<br />
  • 14. 5<br />Gary Gale on Flickr : http://www.flickr.com/photos/vicchi/4414198544/<br />
  • 15. WOEIDs<br />stevefaeembra on Flickr : http://www.flickr.com/photos/stevefaeembra/3567750853/<br />
  • 16. 44418<br />12589342<br />
  • 17. 8<br />David Armano on Flickr : http://www.flickr.com/photos/7855449@N02/3158864420/<br />
  • 18. some background<br />blakophoto on Flickr : http://www.flickr.com/photos/cleveralias/3158810304/<br />
  • 19. let’s talk about geocoding<br />inF! on Flickr : http://www.flickr.com/photos/nathanbarrow/3339245753/<br />
  • 20. geocoding is the process of finding associated geographic coordinates (often expressed as latitude and longitude) from other geographic data, such as street addresses, or zip codes (postal codes).<br />
  • 21. reverse geocoding is the process of back (reverse) coding of a point location (latitude, longitude) to a readable address or place name. <br />
  • 22. noway on Flickr : http://www.flickr.com/photos/noway/78606643/<br />
  • 23. what?<br />where?<br />
  • 24.
  • 25. what? (maybe) where? (maybe)<br />
  • 26. this is not geocoding, this is geoparsing<br />szim90 on Flickr : http://www.flickr.com/photos/szim90/272670479/<br />
  • 27. geoparsing is the process of assigning geographic identifiers (e.g., codes or geographic coordinates expressed as latitude-longitude) to textual words and phrases that occur in unstructured content.<br />
  • 28. cheap flights from london to paris in october<br />
  • 29. 20<br />“I’m sorry dave; I can’t find that place”<br />
  • 30. 21<br />web servers<br />Jamison Judd on Flickr : http://www.flickr.com/photos/jamisonjudd/2433102356/<br />
  • 31. 22<br />51° 30&apos; 50.0868&quot;, 0° 7&apos; 42.8514&quot;<br />(125 Shaftesbury Avenue, London, UK)<br />163.1.117.210<br />(Oxford, UK)<br />20442/6015<br />(Brest, France)<br />#C5243B212<br />(Wilmington, Delaware, USA)<br />
  • 32. 23<br />web surfers<br />National Library NZ on The Commons on Flickr : http://www.flickr.com/photos/nationallibrarynz_commons/3326203787/<br />
  • 33. 24<br />The West End<br />Downtown<br />The Shops<br />The High Street<br />
  • 34. 25<br />The Online World<br />Formal, normalised, structured, regular<br />The Real World<br />“We Are Here”<br />The Offline World<br />Informal, eccentric, bizarre, irregular<br />
  • 35. cheap flights from london to paris in october<br />1) Tokenize<br />London<br />2) Remove common words<br />3) Remove words not in gazetteer<br />Paris<br />
  • 36. “in”… India?<br />bodhitjal on Flickr : http://www.flickr.com/photos/bodhithaj/361857780/<br />
  • 37. “in”… Indiana?<br />OZinOH on Flickr : http://www.flickr.com/photos/75905404@N00/505688957/<br />
  • 38. “to”… Tonga?<br />j_buswell on Flickr : http://www.flickr.com/photos/j_buswell/3683814556/<br />
  • 39. language<br />Jovike on Flickr : http://www.flickr.com/photos/jvk/19894053/<br />
  • 40. Thé?<br />a town in Burgundy, France<br />IN?<br />ISO 3166-1 Alpha-2<br />for India<br />To?<br />a town in Ibaraki<br />prefecture, Japan<br />Is?<br />another town in Burgundy, France<br />IT?<br />ISO 3166-1 Alpha-2 for Italy<br />AND?<br />ISO 31660-1 Alpha-3<br />for Andorra<br />You?<br />a town in Yatenga, Burkina Faso<br />Å?<br />a town in NorlandFylke,<br />Norway<br />That?<br />a town in Rajasthan, India<br />
  • 41. may cause frustration<br />paloaltosoftware on Flickr : http://www.flickr.com/photos/paloalto/3038701605/<br />
  • 42. disambiguation<br />KoenVereeken on Flickr : http://www.flickr.com/photos/koenvereeken/2088902012/<br />
  • 43. this is peru …<br />
  • 44. and so is this (in argentina)<br />
  • 45. and so is this (in bolivia)<br />
  • 46. semantics required<br />dullhunk on Flickr : http://www.flickr.com/photos/dullhunk/3525013547/<br />
  • 47. Hilton, Paris<br />Paris Hilton<br />
  • 48. London<br />Jack London<br />
  • 49. Panama<br />Panama Hats<br />
  • 50. who uses official names anyway?<br />takomabibelot on Flickr : http://www.flickr.com/photos/takomabibelot/234301712/<br />
  • 51. MOMA NYC<br />Museum of Modern Art, New York<br />paulamoya on Flickr : http://www.flickr.com/photos/40351463@N00/745012335/<br />
  • 52. Millennium Wheel<br />London Eye<br />hismith83 on Flickr : http://www.flickr.com/photos/hismith83/200701961/<br />
  • 53. San Francisco<br />City and County of San Francisco<br />SF Brit on Flickr : http://www.flickr.com/photos/cnbattson/192162591/<br />
  • 54. WOEIDs (redux)<br />stevefaeembra on Flickr : http://www.flickr.com/photos/stevefaeembra/3567750853/<br />
  • 55. 44418<br />12589342<br />
  • 56. 51° 30&apos; 50.0868&quot;, 0° 7&apos; 42.8514&quot;<br />
  • 57. Unique<br />Permanent<br />Global<br />Language Neutral<br />London = Londra = Londres = ロンドン<br />United States = États-Unis = StatiUniti = 미국<br />Ensures that geography can be employed consistently and globally<br />straup on Flickr : http://www.flickr.com/photos/straup/3504862388/<br />
  • 58. GeoPlanet<br />A Global Location Repository<br />Names + Geometry +Topology<br />WOEIDs for<br /><ul><li> cities and towns
  • 59. postal codes, airports
  • 60. admin regions, time zones
  • 61. telephone code areas
  • 62. marketing areas
  • 63. points of interest
  • 64. colloquial areas
  • 65. neighbourhoods</li></ul>woodleywonderworks on Flickr : http://www.flickr.com/photos/wwworks/2222523978/<br />
  • 66. Continents<br />Countries<br />Counties<br />Regions<br />Colloquials<br />Targeting Zones<br />Postal Codes<br />Area Codes<br />Boroughs<br />Neighbourhoods<br />POIs<br />
  • 67. United Kingdom<br />23424975<br />VereinigtesKönigreich<br />Europe<br />24865675<br />Country<br />Continent<br />Royaume Uni<br />England<br />24554868<br />Great Britain<br />28298150<br />Country<br />Colloquial<br />イギリス<br />Warwickshire<br />12602190<br />Worcestershire<br />12602192<br />County<br />County<br />Earth<br />1<br />Supername<br />Stratford-on-Avon<br />12696101<br />District<br />Stratford-upon-Avon<br />36424<br />Warwick<br />39228<br />Town<br />Town<br />CV37<br />26787646<br />ZIP<br />
  • 68. http://engineering.twitter.com/2010/02/woeids-in-twitters-trends.html<br />
  • 69. http://isithackday.com/hacks/placemaker/tweet-locations.php<br />
  • 70. http://wherein.yahooapis.com/v1/document<br />
  • 71. unlock your api<br />https://developer.apps.yahoo.com/wsregapp/<br />sam.d on Flickr : http://www.flickr.com/photos/samd/65693717/<br />
  • 72. Placemaker Parameters<br />appid<br />100% mandatory <br />inputLanguage<br />en-US, fr-CA, …<br />outputType<br />XML or RSS<br />documentContent<br />text to geoparse<br />documentTitle<br />optional title<br />documentURL<br />URL to geoparse<br />documentType<br />MIME type of doc<br />autoDisambiguate<br />remove duplicates<br />focusWoeid<br />filter around a WOEID<br />
  • 73. // POST to Placemaker<br />$ch = curl_init(); <br />define(&apos;POSTURL&apos;, &apos;http://wherein.yahooapis.com/v1/document&apos;);<br />define(&apos;POSTVARS&apos;, &apos;appid=&apos;. $key.&apos;&amp;documentContent=&apos;.urlencode($content).<br /> &apos;&amp;documentType=text/plain&amp;outputType=xml&apos;.$lang);<br />$ch = curl_init(POSTURL);<br />curl_setopt($ch, CURLOPT_POST, 1);<br />curl_setopt($ch, CURLOPT_POSTFIELDS, POSTVARS);<br />curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); <br />$placemaker = curl_exec($ch);<br />curl_close($ch);<br />
  • 74. places<br />that_james on Flickr : http://www.flickr.com/photos/that_james/496797309/<br />
  • 75. &lt;placeDetails&gt;<br />&lt;place&gt;<br />&lt;woeId&gt;44418&lt;/woeId&gt;<br />&lt;type&gt;Town&lt;/type&gt;<br />&lt;name&gt;<br />&lt;![CDATA[London, England, GB]]&gt;<br />&lt;/name&gt;<br />&lt;centroid&gt;<br />&lt;latitude&gt;51.5063&lt;/latitude&gt;<br />&lt;longitude&gt;-0.12714&lt;/longitude&gt;<br />&lt;/centroid&gt;<br />&lt;/place&gt;<br />&lt;matchType&gt;0&lt;/matchType&gt;<br />&lt;weight&gt;1&lt;/weight&gt;<br />&lt;confidence&gt;10&lt;/confidence&gt;<br />&lt;/placeDetails&gt;<br />One place for WOEID 44418<br />
  • 76. references<br />misterbisson on Flickr : http://www.flickr.com/photos/maisonbisson/117720946/<br />
  • 77. &lt;reference&gt;<br />&lt;woeIds&gt;44418&lt;/woeIds&gt;<br />&lt;start&gt;1079&lt;/start&gt;<br />&lt;end&gt;1089&lt;/end&gt;<br />&lt;isPlaintextMarker&gt;1&lt;/isPlaintextMarker&gt;<br />&lt;text&gt;&lt;![CDATA[London, UK]]&gt;&lt;/text&gt;<br />&lt;type&gt;plaintext&lt;/type&gt;<br />&lt;xpath&gt;&lt;![CDATA[]]&gt;&lt;/xpath&gt;<br />&lt;/reference&gt;<br />&lt;reference&gt;<br />&lt;woeIds&gt;44418&lt;/woeIds&gt;<br />&lt;start&gt;1116&lt;/start&gt;<br />&lt;end&gt;1126&lt;/end&gt;<br />&lt;isPlaintextMarker&gt;1&lt;/isPlaintextMarker&gt;<br />&lt;text&gt;&lt;![CDATA[London, UK]]&gt;&lt;/text&gt;<br />&lt;type&gt;plaintext&lt;/type&gt;<br />&lt;xpath&gt;&lt;![CDATA[]]&gt;&lt;/xpath&gt;<br />&lt;/reference&gt;<br />Two references for WOEID 44418<br />Two references for WOEID 44418<br />
  • 78. // turn into an PHP object and loop over the results<br />$places = simplexml_load_string($placemaker, &apos;SimpleXMLElement&apos;,<br /> LIBXML_NOCDATA); <br />if($places-&gt;document-&gt;placeDetails){<br /> $foundplaces = array();<br />// create a hashmap of the places found to mix with<br />// the references found<br />foreach($places-&gt;document-&gt;placeDetails as $p){<br /> $wkey = &apos;woeid&apos;.$p-&gt;place-&gt;woeId;<br /> $foundplaces[$wkey]=array(<br /> &apos;name&apos;=&gt;str_replace(&apos;, ZZ&apos;,&apos;&apos;,$p-&gt;place-&gt;name).&apos;&apos;,<br /> &apos;type&apos;=&gt;$p-&gt;place-&gt;type.&apos;&apos;,<br /> &apos;woeId&apos;=&gt;$p-&gt;place-&gt;woeId.&apos;&apos;,<br /> &apos;lat&apos;=&gt;$p-&gt;place-&gt;centroid-&gt;latitude.&apos;&apos;,<br /> &apos;lon&apos;=&gt;$p-&gt;place-&gt;centroid-&gt;longitude.&apos;’<br /> );<br /> }<br />}<br />
  • 79. // loop over references and filter out duplicates<br />$refs = $places-&gt;document-&gt;referenceList-&gt;reference;<br />$usedwoeids = array();<br />foreach($refs as $r){<br />foreach($r-&gt;woeIds as $wi){<br />if(in_array($wi,$usedwoeids)){<br /> continue;<br /> } else {<br /> $usedwoeids[] = $wi.&apos;&apos;;<br /> }<br /> $currentloc = $foundplaces[&quot;woeid&quot;.$wi];<br />if($r-&gt;text!=&apos;&apos; &amp;&amp; $currentloc[&apos;name&apos;]!=&apos;&apos; &amp;&amp; <br /> $currentloc[&apos;lat&apos;]!=&apos;&apos; &amp;&amp; $currentloc[&apos;lon&apos;]!=&apos;&apos;){<br /> $text = preg_replace(&apos;/s+/&apos;,&apos; &apos;,$r-&gt;text);<br /> $name = addslashes(str_replace(&apos;, ZZ’,<br /> $currentloc[&apos;name&apos;]));<br /> $desc = addslashes($text);<br /> $lat = $currentloc[&apos;lat&apos;];<br /> $lon = $currentloc[&apos;lon&apos;];<br /> $class = stripslashes($desc).&quot;|$name|$lat|$lon&quot;;<br /> $placelist.= &quot;&lt;li&gt;&quot;.<br /> }<br />}<br />
  • 80. http://www.vicchi.org/speaking<br />
  • 81.
  • 82. the internet is broken<br />Nesster on Flickr : http://www.flickr.com/photos/nesster/3168425434/<br />
  • 83. // load the URL, using YQL to filter the HTML<br />// and fix UTF-8 nasties<br />$url = &apos;http://www.vicchi.org/speaking&apos;;<br />$realurl = &apos;http://query.yahooapis.com/v1/public/yql’.<br /> &apos;?q=select%20*%20&apos;.<br /> &apos;from%20html%20where%20url%20%3D%20%22&apos;.<br /> urlencode($url).&apos;%22&amp;format=xml&apos;;<br />$ch = curl_init(); <br />curl_setopt($ch, CURLOPT_URL, $realurl); <br />curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); <br />$c = curl_exec($ch); <br />curl_close($ch);<br />if(strstr($c,&apos;&lt;&apos;)){<br /> $c = preg_replace(&quot;/.*&lt;results&gt;|&lt;/results&gt;.*/&quot;,&apos;&apos;,$c);<br /> $c = preg_replace(&quot;/&lt;?xml version=&quot;1.0&quot;&quot;.<br /> &quot; encoding=&quot;UTF-8&quot;?&gt;/&quot;,&apos;&apos;,$c);<br /> $c = strip_tags($c);<br /> $c = preg_replace(&quot;/[ ? ]+/&quot;,&quot; &quot;,$c);<br />}<br />
  • 84. minor annoyances<br />swooshthesnail on Flickr : http://www.flickr.com/photos/swooshthesnail/3281681399/<br />
  • 85. 50,000 bytes<br />ASurroca on Flickr : http://www.flickr.com/photos/asurroca/147049402/<br />
  • 86. X<br />no json<br />
  • 87. post not get<br />sludgegulper on Flickr : http://www.flickr.com/photos/sludgeulper/2645478209/<br />
  • 88. http://where.yahooapis.com/v1/<br />
  • 89. collections<br />bradman334 on Flickr : http://www.flickr.com/photos/bradman334/3402569690/<br />
  • 90. collections<br /><ul><li>lists of related resources, such as places
  • 91. e.g. find all places called “london”</li></ul>http://where.yahooapis.com/v1/places.q(&apos;london&apos;);count=0?appid=[your id]<br /><ul><li>e.g. find the most likely place called “london”</li></ul>http://where.yahooapis.com/v1/places.q(&apos;london’)?appid=[your id]<br />74<br />
  • 92. &lt;places xmlns=&quot;http://where.yahooapis.com/v1/schema.rng&quot; xmlns:yahoo=&quot;http://www.yahooapis.com/v1/base.rng&quot; <br />yahoo:start=&quot;0&quot; yahoo:count=&quot;1&quot; yahoo:total=&quot;22&quot;&gt;<br />&lt;place yahoo:uri=&quot;http://where.yahooapis.com/v1/place/44418&quot; xml:lang=&quot;en-us&quot;&gt;<br />&lt;woeid&gt;44418&lt;/woeid&gt;<br />&lt;placeTypeName code=&quot;7&quot;&gt;Town&lt;/placeTypeName&gt;<br />&lt;name&gt;London&lt;/name&gt;<br />&lt;country type=&quot;Country&quot; code=&quot;GB&quot;&gt;United Kingdom&lt;/country&gt;<br />&lt;admin1 type=&quot;Country&quot; code=&quot;GB-ENG&quot;&gt;England&lt;/admin1&gt;<br />&lt;admin2 type=&quot;County&quot; code=&quot;&quot;&gt;Greater London&lt;/admin2&gt;<br />&lt;admin3&gt;&lt;/admin3&gt;<br />&lt;locality1 type=&quot;Town&quot;&gt;London&lt;/locality1&gt;<br />&lt;locality2&gt;&lt;/locality2&gt;<br />&lt;postal&gt;&lt;/postal&gt;<br />&lt;centroid&gt;<br />&lt;latitude&gt;51.506321&lt;/latitude&gt;&lt;longitude&gt;-0.127140&lt;/longitude&gt;<br />&lt;/centroid&gt;<br />&lt;boundingBox&gt;<br />&lt;southWest&gt;&lt;latitude&gt;51.261318&lt;/latitude&gt;&lt;longitude&gt;-0.563000&lt;/longitude&gt;&lt;/southWest&gt;<br />&lt;northEast&gt;&lt;latitude&gt;51.686031&lt;/latitude&gt;&lt;longitude&gt;0.280360&lt;/longitude&gt;&lt;/northEast&gt;<br />&lt;/boundingBox&gt;<br />&lt;/place&gt;<br />&lt;/places&gt;<br />
  • 93. resources<br />joshuarichards on Flickr : http://www.flickr.com/photos/joshywoshywoo/124671979/<br />
  • 94. resources<br /><ul><li>unique objects that contain multiple attributes, such as a place
  • 95. e.g. get attributes for WOEID 44418</li></ul>http://where.yahooapis.com/v1/place/44418?appid=[your id]<br /><ul><li>e.g. find the most likely place called “london”</li></ul>http://where.yahooapis.com/v1/places.q(&apos;london’)?appid=[your id]<br />77<br />
  • 96. resources<br /><ul><li>unique objects that contain multiple attributes, such as a place
  • 97. e.g. get places related to WOEID 44418</li></ul>http://where.yahooapis.com/v1/place/44418/relation?appid=[your id]<br /><ul><li>parent, ancestors, belongsto, neighbours, siblings, children</li></ul>78<br />
  • 98. &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;places xmlns=&quot;http://where.yahooapis.com/v1/schema.rng&quot; xmlns:yahoo=&quot;http://www.yahooapis.com/v1/base.rng&quot; yahoo:start=&quot;0&quot; yahoo:count=&quot;10&quot; yahoo:total=&quot;34&quot;&gt;<br />&lt;place yahoo:uri=&quot;http://where.yahooapis.com/v1/place/12695806&quot; xml:lang=&quot;en-us&quot;&gt;<br />&lt;woeid&gt;12695806&lt;/woeid&gt;<br />&lt;placeTypeName code=&quot;10&quot;&gt;Local Administrative Area&lt;/placeTypeName&gt;<br />&lt;name&gt;City of London&lt;/name&gt;<br />&lt;/place&gt;<br />&lt;place yahoo:uri=&quot;http://where.yahooapis.com/v1/place/12695807&quot; xml:lang=&quot;en-us&quot;&gt;<br />&lt;woeid&gt;12695807&lt;/woeid&gt;<br />&lt;placeTypeName code=&quot;10&quot;&gt;Local Administrative Area&lt;/placeTypeName&gt;<br />&lt;name&gt;London Borough of Camden&lt;/name&gt;<br />&lt;/place&gt;<br />&lt;place yahoo:uri=&quot;http://where.yahooapis.com/v1/place/12695808&quot; xml:lang=&quot;en-us&quot;&gt;<br />&lt;woeid&gt;12695808&lt;/woeid&gt;<br />&lt;placeTypeName code=&quot;10&quot;&gt;Local Administrative Area&lt;/placeTypeName&gt;<br />&lt;name&gt;London Borough of Hackney&lt;/name&gt;<br />&lt;/place&gt;<br />…<br />&lt;/places&gt;<br />
  • 99. Far more than you could ever want<br />http://delicious.com/codepo8/geotoys<br />
  • 100. never work with children, animals or live demos<br />elephipelephi on Flickr : http://www.flickr.com/photos/elephipelephi/1493013250/<br />
  • 101. not taking notes?<br />selva on Flickr : http://www.flickr.com/photos/selva/24604141/<br />
  • 102. London Twitter #devnest 7, March 2010<br />(Almost) Everything You Ever WantedTo Know About Geo (with WOEIDs)…<br />Gary Gale, Yahoo! Geo Technologies<br />http://slideshare.net/vicchi<br />
  • 103. thanks for listening<br />Paul Keleher on Flickr : http://www.flickr.com/photos/pkeleher/1658311814/<br />
  • 104. www.ygeoblog.com<br />twitter.com/vicchi<br />twitter.com/yahoogeo<br />

×