Skip to content

Commit

Permalink
update map docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessica Lord committed Mar 23, 2014
1 parent ef09201 commit b28f075
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions map-doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,4 @@ Most map providers require you to sign up for a special key to be able to use th

- **Find the lat/long coordinates yourself.** You can add a 'lat' and a 'long' column to your sreadsheet and manually add the coordinates yourself from typing the address into a site like [latlong.net](http://www.latlong.net).
- **Use MapBox's city-level Geocoder Plugin** MapBox has a Google Spreadsheet [plugin](https://www.mapbox.com/tilemill/docs/guides/google-docs/#geocoding) that creates an extra 'Geo' menu at the top of your spreadsheet. With this you can select a column of addresses and geocode them to the city-level (not street-level). When selecting a geocoding service, choose MapQuest and you can leave the API key field blank.
- _Note: When using this option, the plugin generates latitude and longitude columns named 'geo_latitude' and 'geo_longitude'. To make the map, Sheetsee.js needs you to name those columns 'lat' and 'long' instead. So each time you add a row, you'll need to regenerate all the coordinates and rename the columns. Not ideal, I know, but see my note on `sheetsee-maps` below._

### sheetsee-maps

The part of Sheetsee.js that handles maps is called [sheetsee-maps](http://github.com/jlord/sheetsee-maps). Currently it expects lattitude and longitude to come in from a spreadsheet in two columns, one named 'lat' and one named 'long'. I've opened an [issue](http://github.com/jlord/sheetsee-maps/issues/1) to update the library so that it also accepts:

- two columns named 'latitude' and 'longitude'
- one column named 'lat/long'
- two columns named 'geo_latitude' and 'geo_longitude'

The last item is so that people using the MapBox plugin do not need to rename their columns everytime they generate the coordinates.

I'll be making this update as soon as I can.
- _Note: sheetsee.js accepts columns named: latitude, longitude; lat, long; geo_longitude, geo_latitude._

0 comments on commit b28f075

Please sign in to comment.