I recently removed the Location module and went with a simple field solution to store address data, due to Location's inability to offer the City field as a select list. As soon as I removed the Location module, the GetDirections module started giving me an "Access Denied" error (even logged in as user 1).

The module description for Get Directions states that the Location, Views and GMap modules are supported but not required so my question is, how do you use it without the Location/GMap modules? I see nowhere in the admin UI where I can map my new fields to the module for locale information.

Please advise how I can pull the data from my text fields into GetDirections so this module will start working again.

Comments

hutch’s picture

You can supply Getdirections with the necessary locative information by using a path as follows:

"getdirections/latlon/[direction]/[lat],[lon]/[description]"

where [direction] is either "to" or "from"
[lat],[lon] is a comma delimited pair of latitude, longitude in decimal degrees
[description] is a simple description of "to" or "from", eg the address.

If you have this informaton in your own tables/fields you might be able to use Views to build the path.