I have to first say, GREAT module idea and love the initiative! This would be a great feature to have on my site and something I have been looking for, for quite some time.
I am trying to use the subway/metro feature for both Japan and Hong Kong. Google maps works perfectly fine providing the route on the subway with up to the minute schedules and routing with the Japanese train system.
I tried to use this module but when I input the station name from and to, I get this error message. This happens when I select the public transportation option. Does this not work in the module?:
Error: No route could be found between the origin and destination.
Also, I read through the entire read me document and couldn't figure out how I could just feed the module a URL with the station names or with a node that has the longlat or station name listed in a CCK field. Does this module only work with the location module. How do I tell the module which CCK field has the value it's looking for it, couldn't find this anywhere in the read me document. When I supply the URL with the node id, what is it looking for within that node?
Josh
Comments
Comment #1
hutch commentedGetdirections supplies a form and a map, Google does the rest, if Google can't find stuff there is nothing that Getdirections can do about that. The error you are seeing was provided by Google, Getdirections just reports what it gets.
In D6 Getdirections works with the Location module and it uses the functions provided (location_load_locations() and location_load_location() ) to fetch the data. This works with Location Node and Location CCK. Both these modules store their locative information in the location and location_instance tables. Getdirections does not look at the CCK fields at all, there is no need, nid is stored in the location_instance table.
In D7 Getdirections supports Getlocations Fields, Location, Geolocation and Geofield.
Comment #2
drupalfan81 commentedThanks for the quick response. Regarding feeding the data, I am feeding the same data into the two direction fields on gmap and it works just fine. Here is a link to the page:
https://maps.google.com/maps?saddr=Shibuya&daddr=Shinjuku&hl=en&sll=35.6...
I type Shibuya in the top from field and Shinjuku into the to field, select public transport and viola it tells me the train schedule and route to get form point a to point b. So it seems to work just fine in gmaps. Perhaps this module doesn't support all of Gmaps public transit code? I have no idea, I am only enough to be dangerous with programming. But this definitely works on gmap but not through this map. If I select walk or drive, it works. Just not for public transpo, which is what I need.
For my site, I decided to use CCK fields to customize the location as the location module and CCK location wasn't any good for me, due to my addresses mostly being in Asia, and it would take too much effort to recode the location module. So instead I just used CCK fields on my nodes to collect the address info. So it would be great if this module would allow me to select a CCK field to provide the station name or long/lat info so that I could use the locationpath/to/nid. Any plans to add this so that user collecting addresses the way I am can use this?
Thanks again and really love the idea, hopefully I can get this to work on my site. The users would definitely love it!