Hello,
I am trying to get driving directions between two Canadian locations.
The problem is, no matter what I put for the Latitude / Longitude of the destination, it always maps to Kansas!
What is wrong and how can I fix this?
Thanks!
PS.... You will have to upload this to a server to test it because MapQuest requires that it be accessed via http://
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
src="http://web.openapi.mapquest.com/oapi/transaction?request=script&key
=mjtd%7Clu6t210anq%2Cb2%3Do5-gwb01">
<br>
<br> Mapquest Routing
<br>
<br> var mqRoute = null;
<br> function doSubmit()
<br> {
<br> mqRoute = new MQRoute("container");
<br> var thumbSize = new MQSize();
<br> thumbSize.setHeight(150);
<br> thumbSize.setWidth(300);
<br> var overviewSize = new MQSize();
<br> overviewSize.setHeight(400);
<br> overviewSize.setWidth(600);
<br> mqRoute.primaryMapSize = overviewSize;
<br> var myRoute = new MQRoute("container");
<br> var myLoc = new MQLocation();
<br> myLoc.setLatitude('45.409097');
<br> myLoc.setLongitude('-75.685449');
<br> myRoute.origin = myLoc;
<br> myLoc.setLatitude('45.4237332');
<br> myLoc.setLongitude('-75.676332');
<br> myRoute.dest = myLoc;
<br> myRoute.doRoute();
<br> }
<br> function routeReturn(mqRoute, status) {
<br> }
<br>
class="mqDefault" title="Get Directions">
value="Get Directions" tabindex="20"/>