View Full Version : Is this possible with google maps?
10-13-2008, 09:32 PM
Is it possible with googlemaps api to write an application to plan a route between n points?
10-13-2008, 10:58 PM
I found a great module for Joomla ...
But why is there not a script for PHP?
I gotta keep looking ... there must be one.
Getting Closer ...
See Google API - GDirections
(towards the bottom of the page, directions by walking or by driving).
10-14-2008, 08:16 AM
The Joomla extension is just a PHP script ;)
I know that google can manage a route between 2 points. But I need to do between 30-60 points. The docs seem to imply that its possible but theres no working example of it - I'll have to fiddle with it and see what I can come up with.
10-14-2008, 07:54 PM
Maybe you can create a simple text file with the routes ...
Like this -- 2 destination pairs separated by pipe "|"
123 Elm St., St. Paul, Minnesota|334 Oak Ave., St. Paul, Minnesota
334 Oak Ave., St. Paul, Minnesota|5234 Summit Ave., St. Paul, Minnesota
Then, with PHP, loop through, generating a route from one to the other ... etc.
Like Point A to Point B, Point B to Point C, Point C to Point D ... etc.
I do notice that sometimes Google picks main routes, not the shortest route.
Here you go ... PHP/MySQL bus route script:
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.