Hi. I want to use a string formatted: 'descriptive text @ lat,lng' as part of a DirectionsRequest.
A string formatted like that works with v2 of the API, but not it seems with v3? If you look at this v2 map: http://www.tinemuller.dk/test_drupal/ Select København from the 'Region Hovedstaden' list. Click any marker or sidebar element and in the infowindow click 'Add to Ruteplan'. You can see the Adresse text input completed with a query formatted as above. Complete 2 or more of the text inputs and click 'Get directions' and it works just as intended. When the directions are recieved by the map then the 'href' attribute of the 'See this rute on maps.google.com' link is updated so that a click on that links shows the route on a map at maps.google.com. Now on the v3 map it doesn't work: http://beta.findtoilet.dk/ Again select København from the 'Region Hovedstaden' list - you might need to select 'Select a city' and then København to trigger the code. Click a marker or sidebar element and then in the infowindow the 'Route planner' link, as with the v2 code the text inputs value is set to a string formatted as above. Add 2 or more places and click Get directions and you'll get an alert box 'Sorry, the map was unable to obtain directions for the route'. Using Firebug i see that the value of the DirectionsStatus in my code is 'NOT_FOUND'. Now if you select all text in the input up to and including the space after the ampersand and click Get directiosn again you'll see it works. I've searched the group and found nothing to indicate that the formatted string is no longer supported in the API. Can anyone tell me if that's the case - that a string formatted as i have is not a valid DirectionsRequest? Thanks. Martin. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
