Multi-hop Routes in Google Maps

The ability to create multiple-hop routes was recently added to Google Maps. Not only does this let you plan a trip to New York by way of San Francisco and Tampa Florida, but you can also use the feature to adjust a more conventional route. You might do this to manually avoid road construction or traffic jams that you know about.
To use the feature, you simply drag a point on the blue line to another position. The map will automatically compute a new route that crosses through the new position.
You can make use of this functionality from the standard map APIs as well. Before, start and destination addresses were specified by the saddr and daddr parameters:
http://maps.google.com/maps?saddr=start+address&daddr=destination+address
With multiple hops, you just encode all the hops into the destination address, seperated by "to:". For example, "destination1 to:destination2 to:final destination":
http://maps.google.com/maps?
saddr=minneapolis%2C+mn& daddr=san+francisco%2C+ca+
to%3Atampa%2C+fl+
to%3Anew+york%2C+new+york
Posted by Jason Striegel |
Jun 28, 2007 09:26 PM
Google Maps |
Permalink
| Comments (0)
Recent Entries
Bloggers
Welcome to the Hacks Blog!
Categories
- Ajax
- Amazon
- AppleTV
- Astronomy
- BlackBerry
- Blogging
- Body
- Cars
- Cryptography
- Data
- Education
- Electronics
- Energy
- Events
- Excel
- Excerpts
- Firefox
- Flash
- Flickr
- Flying Things
- Food
- Gaming
- Gmail
- Google Earth
- Google Maps
- Government
- Greasemonkey
- Hacks Series
- Hackszine Podcast
- Halo
- Hardware
- Home
- Home Theater
- iPhone
- iPod
- IRC
- iTunes
- Java
- Kindle
- Knoppix
- Language
- LEGO
- Life
- Lifehacker
- Linux
- Linux Desktop
- Linux Multimedia
- Linux Server
- Mac
- Mapping
- Math
- Microsoft Office
- Mind
- Mind Performance
- Mobile Phones
- Music
- MySpace
- MySQL
- NetFlix
- Network Security
- olpc
- OpenOffice
- Outdoor
- Parenting
- PDAs
- Perl
- Philosophy
- Photography
- PHP
- Pleo
- Podcast
- Podcasting
- Productivity
- PSP
- Retro Computing
- Retro Gaming
- Science
- Screencasts
- Shopping
- Skype
- Smart Home
- Software Engineering
- Sports
- SQL
- Statistics
- Survival
- TiVo
- Transportation
- Travel
- Ubuntu
- Video
- Virtualization
- Visual Studio
- VoIP
- Web
- Web Site Measurement
- Windows
- Windows Server
- Wireless
- Word
- World
- Xbox
- Yahoo!
- YouTube
Archives
Recent Posts
- Poromenos' hello world curve
- USB CapsLocker and Sun keyboard simulation
- Robosapien has a coil gun
- Faster Windows shutdown
- Assign USB drives to a folder
- Little drummer bot
- CSS ad blocking for Firefox and Safari
- Design Coding: web standards rap
- Shredz64: Guitar Hero for C64
- BATMAN: adhoc mesh routing
www.flickr.com
|





Leave a comment