« 50 Best Websites 2007 | Main | Amazon's Kindle Opens the New Era of Reading »

Create an Animated GPS Like Driving Direction with Virtual Earth Map

Link: Animated 3D Driving Direction

Reading map isn't always an easy job for lots of people.  In Friends TV show, Joey put a paper map on the gound and step on it in order to get a sense which direction is right.  Though that's a little bit of a extreme case, it illustrates the challenge.  Many people need more intuitive online maps too and especially the driving directions, so that they don't have to put the computer monitor on the ground and step on it :)  Some GPS devices like TomTom came up with really nice 3D UI to show the driving directions in a much more intuitive way.

tomtom.jpg

Live Virtual Earth Map provides a rich set of APIs with which interesting map applications could be developed, even in 3D and birds eye view.  As an example, I built an animated driving direction that kind of simulates TomTom.  Turn by turn the map will move as if you are driving and what you see is a view of 45 degree looking down from above your "car" and you can see clearly what road and intersection is ahead of you.

3Ddriving.jpg

The basic idea is to call the routing API to get the itinerary with all segments of the driving direction.  For each segment, the map orientation will be adjusted so that the next point is right ahead and then pan to the next point while showing the textual turn by turn instruction. Some suggestion for the API is that the panning APIs are mostly asynchronized so that the calls return immediately while the actually panning is done a while later.  This causes a little bit trouble in showing the textual turn by turn driving direction in sync with the map animation.  Map events help to some degree, but still some work needs to be done to keep the map and text in sync, because events are generic and there doesn't seem to be a way to assign per event instance parameters.  Also the detailed road of each segment is not available, so when the road between 2 points is not straight we can't follow the curve of the road in order to simulate the exact driving experience.

TrackBack

TrackBack URL for this entry:
http://stanblog.jojoyao.com/cgi-bin/mt/mt-tb.cgi/55

Post a comment


About

This page contains a single entry from the blog posted on September 6, 2007 6:32 PM.

The previous post in this blog was 50 Best Websites 2007.

The next post in this blog is Amazon's Kindle Opens the New Era of Reading.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.33