Trying to get my first example code working

606 views
Skip to first unread message

John Feeney

unread,
Jun 22, 2012, 11:48:39 AM6/22/12
to google-maps...@googlegroups.com
I was able to download a starter example code gm-tsp-solver.....came from a link within this group.
 
It has three files ... BpTspSolver.js, tsp.js and test01.html
 
I have been trying to get test01.html working....I have made some changes....but still getting errors.
 
I have attached my all three files.
 
Here is the error that I am getting
Microsoft JScript runtime error: Unable to get value of the property 'ZERO_RESULTS': object is null or undefined
 
Thanks, John
 
test01.html
BpTspSolver.js
tsp.js
Message has been deleted

my.open.e...@gmail.com

unread,
Mar 24, 2013, 5:49:25 PM3/24/13
to google-maps...@googlegroups.com
OK, it may be 9 months later but (since I faced the same issue): the reason you were getting the undefined error is because you had a typo in the following line of the html:

tsp.addWaypoint(new google.maps.LatLng( 43,773062, -81.531944)); //Auburn

Comma should be replaced with a period.
Reply all
Reply to author
Forward
0 new messages