NancyJ
10-13-2008, 09:32 PM
Is it possible with googlemaps api to write an application to plan a route between n points?
|
||||
Is this possible with google maps?NancyJ 10-13-2008, 09:32 PM Is it possible with googlemaps api to write an application to plan a route between n points? mlseim 10-13-2008, 10:58 PM I found a great module for Joomla ... http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,5734/Itemid,35/ But why is there not a script for PHP? I gotta keep looking ... there must be one. EDIT: Getting Closer ... See Google API - GDirections (towards the bottom of the page, directions by walking or by driving). http://code.google.com/apis/maps/documentation/services.html#Directions . NancyJ 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. mlseim 10-14-2008, 07:54 PM Nancy ... 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 etc. 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. EDIT: Nancy ... Here you go ... PHP/MySQL bus route script: http://ruk.ca/wiki/Charlottetown_Transit_Map#Demonstration_Page . |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum