TrueWay Matrix

फ्रीमियम
Verified
द्वारा TrueWay Team | अपडेट किया गया vor 5 Tagen | Mapping
लोकप्रियता

9.7 / 10

लेटेंसी

272ms

सेवा का स्तर

100%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

I can't get response

Rapid account: Renome Smart Company

I can’t get response because in code example generated or idk from where you get %252C and other symbols
if i don’t use those i have an error 400 (bad request)
Example:
index.html:89 GET https://trueway-matrix.p.rapidapi.com/CalculateDrivingMatrix?destinations=47.5%2C19.04P.45%2C30.52&origins=47.5%2C19.04P.45%2C30.52 400 (Bad Request)
How i must build request if i have an input values?

Rapid account: Renome Smart Company
renome.smart.company Commented vor 4 Jahren

Hoho, a lot of thanks. I understanded it’s encoded comma and semicolon. I’ve tried and it works correctly.

Rapid account: Trueway
trueway Commented vor 4 Jahren

You can go to:
https://rapidapi.com/trueway/api/trueway-matrix
There you can see an example, enter your points in fields “origins” and “destinations” and generate code snippet on your preferred language. You will see that the comma and semicolon are encoded in escape sequence %2C(or %252C) and %3B(or %253B).

Rapid account: Renome Smart Company
renome.smart.company Commented vor 4 Jahren

I always have different coordinates and i need to create right request but i don’t know from where i must take semicolon. How semicolon is obtained? What is function or something else to get semicolon of coordinates to this request. I don’t understand, sorry

Rapid account: Trueway
trueway Commented vor 4 Jahren

Between which points do you want to calculate the matrix? By your request, it looks like the matrix is ​​calculated between two origins [(47.5,19.04) and (50.45,30.52)] and two destinations [(47.5,19.04) and (50.45,30.52)].

Rapid account: Renome Smart Company
renome.smart.company Commented vor 4 Jahren

How i can get semicolon of each pair if i have only latitude and longitude?

Rapid account: Trueway
trueway Commented vor 4 Jahren

Сoordinate pairs(latitude,longitude) in request must be separated by a semicolon(%253B). But in your request there is only a percent symbol(% after 19.04). You request must be:
GET https://trueway-matrix.p.rapidapi.com/CalculateDrivingMatrix?destinations=47.5%2C19.04%3B50.45%2C30.52&origins=47.5%2C19.04%3B50.45%2C30.52

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें