I have a page at http://www.no1hastings.check.com.au/directions.html where visitors can get directions from anywhere to a fixed point. The destination that the Google geocoder recognises is a street address (1 Morwong Drive) but I would like it to display the name of the building there (No. 1 in Hastings Street) which Google doesn't recognise.
Is there way to set the street address as the destination but alias it to the building name when the result is displayed?
One option would be to modify the string in the response before sending it to the DirectionsRenderer:
To handle the case where the directions are changed by the directionsRenderer (i.e. for dragging the origin), you could do something like this (where changeEnd is a global and set to false), note that it will have undesireable results if the user drags the destination (you may want to prevent that: Google maps api v3 Two markers one fixed one dragged):