MTD Developer Forum
»
API
»
General Discussion
»
Question about GetPlannedTripsByLatLon
Rank: Guest
Groups: Guests
Joined: 4/11/2011(UTC) Posts: 0
|
1. Do the latitude and longtitude values have to be integers? REST call returns syntax errors when I use double 2. After I set the lat and lon values from doubles to integers, I tried by using "502 W Main St " to "market Place", the return is HTTP/1.1 400 Distance from origin to destination is trivial. What is a distance for being non-trivial? Or is it because I set the lat and lon to integers?
Thanks a lot :-)
|
|
|
|
Rank: Administration
Groups: Administrators, Registered Joined: 6/1/2011(UTC) Posts: 88 Location: Urbana Thanks: 1 times Was thanked: 6 time(s) in 6 post(s)
|
Quote:Do the latitude and longtitude values have to be integers? REST call returns syntax errors when I use double Decimals should work fine with the GetPlannedTripsByLatLon method. I included a sample call to demonstrate. Can you give me an example of a call where you are getting this error? http://developer.cumtd.c...estination_lon=-88.22723Quote:After I set the lat and lon values from doubles to integers, I tried by using "502 W Main St " to "market Place", the return is HTTP/1.1 400 Distance from origin to destination is trivial. What is a distance for being non-trivial? Or is it because I set the lat and lon to integers? Can you give me the latitude/longitude coordinates that you were using for this? I'm not sure off the top of my head what the "trivial" threshold is, but this trip should be well outside it.
|
|
|
|
Rank: Guest
Groups: Guests
Joined: 4/11/2011(UTC) Posts: 0
|
|
|
|
|
Rank: Administration
Groups: Administrators, Registered Joined: 6/1/2011(UTC) Posts: 88 Location: Urbana Thanks: 1 times Was thanked: 6 time(s) in 6 post(s)
|
Yes, the destination_lat is too long. It has a maximum of 12 digits after the decimal. We'll look at fixing it soon. In the mean time, this query works: http://developer.cumtd.c...destination_lon=-88.2271Also, please do not post your developer key on the forum. Edited by user Tuesday, January 17, 2012 9:45:41 AM(UTC)
| Reason: Not specified
|
|
|
|
MTD Developer Forum
»
API
»
General Discussion
»
Question about GetPlannedTripsByLatLon
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.