Select Categories Below
Status: Closed Points: 250 Time: 11:19 - Mar 11, 2007
hknight
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:// <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-t... <html> <head> <script type="text/javascript" src="http://web.openapi.mapquest.com/oapi/tra... </script> <title> Mapquest Routing </title> <script type="text/javascript"> var mqRoute = null; function doSubmit() { mqRoute = new MQRoute("container"); var thumbSize = new MQSize(); thumbSize.setHeight(150); thumbSize.setWidth(300); var overviewSize = new MQSize(); overviewSize.setHeight(400); overviewSize.setWidth(600); mqRoute.primaryMapSize = overviewSize; var myRoute = new MQRoute("container"); var myLoc = new MQLocation(); myLoc.setLatitude('45.409097'); myLoc.setLongitude('-75.685449'); myRoute.origin = myLoc; myLoc.setLatitude('45.4237332'); myLoc.setLongitude('-75.676332'); myRoute.dest = myLoc; myRoute.doRoute(); } function routeReturn(mqRoute, status) { } </script> </head> <body> <div class="mqClear"> <form id="ddform" name="ddform" action="javascript:doSubmit();" class="mqDefault" title="Get Directions"> <input type="hidden" name="go" value="1" /> <input type="hidden" name="do" value="nw" /> <input type="hidden" name="rmm" value="1" /> <input type="hidden" name="un" value="m" /> <input type="hidden" name="cl" value="EN" /> <input type="hidden" name="ct" value="NA" /> <input type="hidden" name="rsres" value="1" /> <input type="hidden" name="map" value="y" /> <div style="text-align:center"> <input type="submit" id="submit1" value="Get Directions" tabindex="20"/></div> </form> </div> <div> <div id="container" class="mqContainer" style="width:600px;"> </div></div> </body> </html>
Categories:
Add Categories
When adding more than one category, separate them with commas.
Advertisement
nidhi
Date:: Apr 12, 2007
Time:: 07:00
your code wont work for anyone cos the url is http://web.openapi.mapquest.com/oapi/tra... and I assume u need to have a key Regarding setting destination, just a thought, try create another variable, does it make any difference? eg var myLocDest = new MQLocation(); myLocDest.setLatitude('45.4237332'); myLocDest.setLongitude('-75.676332'); myRoute.dest = myLocDest; hopefully it will find Ottawa or something
Time:: 07:03
Had a quick look in mapquest, it seems u need to set myRoute.destination and not myRoute.dest I could be mistaken as I dont have that sdk http://www.mapquest.com/features/main.ad...
admin
Date:: Jun 16, 2007
Time:: 16:09
hknight, please close this question and distribute the points. If you didn't get a solution to your problem or you found it yourself, please leave a comment here to let the experts know. Thanks, Quomon Admin
Date:: Jun 25, 2007
Time:: 06:09
The question has been closed. Quomon Admin
Question Answered
This question has been closed, and points have been rewarded to the following experts:
You're welcome however to comment or give additional information or if you wish, you have the ability to write a Tutorial in the Tutorial Area.
Answer this Question
New User
Email:
Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address
Registered User
Username:
Password:
Forgot Your Password?
Enter your email address below and we will resend your login information to you.
Login Information Sent
Questions
how do i open a file dialog in .net (a windows application)?
When trying to alter a table in MySQL, I get "Error on rename... (Errcode: 13)"
how do i delete a top domain cookie from a subdomain?
Hi Am Rakesh, Am generating User Data List, Details Given Below.Please Help Me.
What is some free software for recording the movements on your computer screen t...
Good project management software?
You have 100 characters to use
Rank
Expert
Points
1.
665
2.
505
3.
428
4.
280
5.
200
6.
125
7.
8.
87
9.
80
10.
75
Register today to share your knowledge with the community and be recognized and rewarded for your contributions.
Register Here
"Psst, Quomon is a great site. Pass it on." Tell a Friend | Link To Us | Save to Delicious | Digg it
Language Options
English:
Español:
Sponsors
Questions and Answers Software Real Estate Postcards Marketing Fulfillment