« A Simple JSP to View Everything in Your Classpath | Main | RSS - What is it and why do I need it? »
December 30, 2005
Cruise the World with the Google Maps API
For my first foray into the Google Maps API, I decided to plot the Silversea 2007 World Cruise. For only $53,000, you can take a 126 day cruise to 6 continents. While I most likely will not be on that cruise ($53k is a little much), I thought it would be tedious fun to chart out all of the destinations using the API.
For the most part, the coding was pretty straight-forward. I used Google Earth to find the latitude and longitude of almost all the stopping points. I was not able to find coordinates for all destinations though, so the below map does not show all points on the cruise. However, it does show the idea of what the cruise route will be.
One thing I did not anticipate was the API's handling of polylines across the International Date Line. Let's say there is one point on each side of the International Date Line and you try to connect them with a polyline. Instead of drawing a short line between the two points, the API will instead draw a long line all the way across the world to connect them. There is a discussion about this behavior here. To combat this problem, I had to make two different polylines, one for each side of the Date Line.
The finished product is below, or you can see it on its own page here. The starting point is Fort Lauderdale, FL and it goes South from there. You will have to use your imagination and connect the points between French Polynesia and Fiji as that is where the Date Line problem lies. After going around the world, the trip ends at New York, NY.
Posted by Chuck at December 30, 2005 09:48 AM
Trackback Pings
TrackBack URL for this entry:
http://www.chuckcaplan.com/blog/mt-tb.cgi/34
Comments
You may pay on your trip. Start early or have close friends help. If you really desire it you can have it.
Posted by: carol at December 30, 2005 09:56 PM
Regent Seaven Seas Cruises is using the Google API for all of their cruises.
www.rssc.com/voyage
Posted by: google at July 25, 2006 01:00 PM
Thanks for the link!
Chuck
Posted by: Chuck Caplan
at July 25, 2006 01:04 PM