Try to get a working jquery mobile maps direction page.
There is this example listed:
http://jquery-ui-map.googlecode.com/svn/trunk/demos/jquery-google-maps-mobile.html#directions_map
But the example code is messy and haven’t been able to get it working :(.
Ikea uses it.
http://m.ikea.com/nl/nl/stores/415/map/
but they also very customized the js so its very hard to see what happens.
Does anyone know of a good clean example or implementation that’s easy to follow?
Below you can find a basic example of using the Google Maps directions service in a jQuery Mobile page.
UPDATE 1:
The below example uses the current position which is automatically located and a target destination address which is given from the user.
UPDATE 2:
The below example locates the current position and it automatically calculates the distance and displays the route details between the current location and a static predefined destination location.
I hope this helps.