A short note on mapping text

by Tsahi Levent-Levi

Kristina had a question.

So I started puttering.

We came up with this.

1. Grab the text of a blog post (but not too much, or do this in a bunch of rounds).

2. Put it at the end of this URL:


like so:

http://geotxt.org/api/1/geotxt.json?m=stanfords&q=Edwin Ernesto Rivera Gracias was in El Salvador and after voluntarily agreeing to return to the United States to face charges he was flown to Denver on Wednesday, according to the FBI. He surrendered to Salvadoran authorities and FBI agents on Tuesday, said FBI spokesman Dave Joly.

(For more information about this step, see: http://www.geotxt.org/api/)

That will use the Stanford NER to extract places & geocoordinates, and return them in valid GEOJSON.

3. Copy the geojson.

4. Go to geojson.io, and paste it in the right hand editing window.

5. You now have a map, congratulations! (You could’ve uploaded the geojson to many places –for instance, github gist– , but stay with me). Hit the ‘save’ button, and select KML.

6. You now have the data as KML for use with the Google environment. Go to Google’s My Maps. Create a new map.

7. Click the ‘import’ button, and drag-and-drop the KML onto the loader. Ta da! A google map that you can now annotate, share, etc etc etc.

Here’s the first paragraph of Kristina’s most recent post over on Forbes all mapped out.