Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts

    Is this possible with google maps?

    Is it possible with googlemaps api to write an application to plan a route between n points?

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,549
    Thanks
    8
    Thanked 1,095 Times in 1,086 Posts
    I found a great module for Joomla ...
    http://extensions.joomla.org/compone...734/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/doc...tml#Directions



    .
    Last edited by mlseim; 10-14-2008 at 12:14 AM.

  • #3
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    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.

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,549
    Thanks
    8
    Thanked 1,095 Times in 1,086 Posts
    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_Tra...nstration_Page


    .
    Last edited by mlseim; 10-14-2008 at 09:12 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •