Yahoo! Placemaker. Really exciting new API from Yahoo!—Placemaker accepts a block of text (or a URL to HTML or RSS) and extracts and returns geographical locations mentioned in the text. I just ran my djng blog entry through it and it pulled out “Prague” as the only location mentioned. This should be really useful for adding geodata to existing textual content.
Cool! Thinking of a way to use this in our Loco2 app...
Jamie - 21st May 2009 11:56 - #
I'm apparently doing it wrong:
http://dpaste.com/46221/
(That's from an example.)
Working code sample, anyone?
Jeremy Dnck - 22nd May 2009 03:41 - #
You need to include the Content-Type: application/x-www-form-urlencoded header. Here's my working function:
http://gist.github.com/115985
Bah, I coulda sworn I tried that.
Thanks.
Jeremy Dunck - 22nd May 2009 14:23 - #