-
Recent Posts
Recent Comments
Categories
Tags
backpacking beer boston california cartography colors computers conspiracy consumer coverup cron database dd-wrt fibs finance fun functional-programming google government hiking homebrewing hugin jvm library maps netflix network news nuclear-power osx panoramic performance photography programming python quality question-answer recipe sanfrancsico sbt scala scalaz traffic-shaping type-erasure web
Archives
- January 2016
- April 2015
- February 2015
- May 2014
- April 2014
- February 2014
- July 2013
- April 2013
- October 2012
- March 2012
- December 2011
- November 2011
- June 2011
- December 2010
- November 2010
- August 2010
- July 2010
- June 2010
- September 2009
- August 2009
- May 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- August 2008
- July 2008
- March 2008
- February 2007
- June 2006
- May 2006
- April 2006
-
RSS Links
Plot multiple locations on Google Maps
Plot multiple locations on Google Maps
Hey all
A few days ago, I had two appointments downtown in the financial district on the same day. I wasn't sure how close they were to each other, so I got the idea to look them up on google maps. However, I soon found out that you cannot plot more than one location on google maps at a time. (Well, that's not completely true, since you could plot one point, and then get directions from there to the other place. But then what would you do if you needed to plot three places?)
So, I decided to see if I could hack something together using the Google Maps API. The result is at: http://gmaps.kaeding.name
It isn't pretty, nor is it perfect, but hey, it works (at least when the addresses are accepted by the geocoder).
You enter as many addresses as you want, one per line. Then the script sends those strings through geocoder.us to get latitude and longitude. (The Google Maps API only allows you to plot points using latitude and longitude, not by supplying an address). Sometimes, geocoder.us will come back with more than one possible address for a single string. So, the next page asks you to confirm the addresses. The final page displays the map.