2

Closed

v6 Directions, Destination Error

description

Whenever I attempt to do directions from an address (origin) to a destination point (lat/lng) I receive the following error. The directions only appear to work when I use address origin to address destination. This is where we have a problem because Google isn't properly interpreting several of our addresses. Instead of doing "XX 5th St Oswego IL" it is only doing directions to "5th St, Oswego IL" which is miles away from our actual location. Any thoughts on a resolution to this issue? We would really like to be able to direct people from their address to our destination (Lat/Lng).

-----GOOGLE CHROME SCRIPT CONSOLE----------
Uncaught Error: Invalid value for property <destination>: [object Object] main.js:15
(anonymous function) main.js:15
ED.(anonymous function).Bh
S main.js:24
ED.(anonymous function).Bh
of.(anonymous function).route main.js:24
(anonymous function) main.js:24
L main.js:9
mf main.js:24
(anonymous function)
jf.util
(anonymous function) main.js:24
(anonymous function) main.js:10
gf.(anonymous function).Ac main.js:24
L main.js:9
gf.(anonymous function).Ac main.js:24
ff.(anonymous function).ae main.js:23
gf.(anonymous function).Ac main.js:24
kf main.js:24
(anonymous function) %7Bcommon,map,util,marker,infowindow,geometry,directions%7D.js:7
Closed Oct 8, 2012 at 8:04 PM by velio

comments

caelanadriyel wrote Aug 9, 2012 at 5:52 PM

Temporary solution is to put the coordinates in the "Address" field in the following format

Dim D as New GoogleDirections
D.Destination.Address = "41.12345, -87.12345"
D.Origin.Address = "Customers Start Address"
GM1.Directions.Add(D)