logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Login


Options
View
Go to last post Go to first unread
lhphanto  
#1 Posted : Monday, January 16, 2012 5:07:31 PM(UTC)
Guest

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 :-)
Ryan  
#2 Posted : Monday, January 16, 2012 5:23:39 PM(UTC)
Ryan

Rank: Administration

Groups: Administrators, Registered
Joined: 6/1/2011(UTC)
Posts: 88
United States
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.22723

Quote:
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.
lhphanto  
#3 Posted : Monday, January 16, 2012 7:42:23 PM(UTC)
Guest

Rank: Guest

Groups: Guests
Joined: 4/11/2011(UTC)
Posts: 0

Oh, actually I got error for setting destination to "Illini Union":

01-16 19:39:07.098: I/REST(487): HTTP/1.1 400 #11057--Syntax Error

The query is:
http://developer.cumtd.c...destination_lon=-88.2271

Maybe destination_lat is too long?

Edited by moderator Monday, January 16, 2012 8:21:10 PM(UTC)  | Reason: removed developer key

Ryan  
#4 Posted : Monday, January 16, 2012 8:20:48 PM(UTC)
Ryan

Rank: Administration

Groups: Administrators, Registered
Joined: 6/1/2011(UTC)
Posts: 88
United States
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.2271

Also, 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

Users browsing this topic
Guest
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.