1. Matrix With Traffic
Curl request
$ curl 'https://utils.limosys.net/geo/matrix?key=YOUR_GEO_API_KEY&origin=VALID_ORIGIN_1&destinations=VALID_DESTINATION_1&traffic=yes' -i -X GET \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Accept: application/json'
HTTP request
GET /geo/matrix?key=YOUR_GEO_API_KEY&origin=VALID_ORIGIN_1&destinations=VALID_DESTINATION_1&traffic=yes HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
Host: utils.limosys.net
HTTP response
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE
Access-Control-Max-Age: 3600
Access-Control-Allow-Headers: origin, content-type, accept, authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: Set-Cookie
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 196
{"matrix":[{"dist_meters":5000,"dist":3.1068559611866697,"time":5,"timeSeconds":300,"src":"LOCAL","brackets":[4,7],"lat1":25.5,"lon1":-25.5,"lat2":25.5,"lon2":-25.5}],"traffic":true,"status":"OK"}
HTTPie request
$ http GET 'https://utils.limosys.net/geo/matrix?key=YOUR_GEO_API_KEY&origin=VALID_ORIGIN_1&destinations=VALID_DESTINATION_1&traffic=yes' \
'Content-Type:application/json;charset=UTF-8' \
'Accept:application/json'
Request body
Request parameters
Parameter | Description |
---|---|
|
Limosys API Key |
|
Origin list, semi colon separated |
|
Destinations list, semi colon separated |
|
Use traffic - 'yes' or 'no' |
|
Select 'no' to Avoid highways |
|
Traffic model to use - 'optimistic', 'pessimistic', 'best_guess' |
|
If 'yes' then thirdparty is prioritized |
|
Use one year hack where applicable |
|
What is result used for - code (e.g. "BID") - for logging purposes |
|
[For Testing] Use prediction for result and brackets - default "yes" |
|
Use cache if available - default "yes" |
Response body
{"matrix":[{"dist_meters":5000,"dist":3.1068559611866697,"time":5,"timeSeconds":300,"src":"LOCAL","brackets":[4,7],"lat1":25.5,"lon1":-25.5,"lat2":25.5,"lon2":-25.5}],"traffic":true,"status":"OK"}
Response fields
Path | Type | Description |
---|---|---|
|
|
Distance matrix results |
|
|
Whether traffic was used |
|
|
Used oneYearHack param - boolean |
|
|
OK or ERROR for whole result |
|
|
Distance in miles |
|
|
Time in minutes |
|
|
Time in seconds |
|
|
Source of data (provider) |
|
|
Algorithm used for ETA |
|
|
Traffic mode |
|
|
Result CACHED or NEW |
|
|
Distance in meters |
|
|
Estimated data from X to Y minutes |
|
|
Blank if OK, ERROR if single item failed |
|
|
Origin Latitude coordinate used |
|
|
Origin Longitude coordinate used |
|
|
Destination Latitude coordinate used |
|
|
Destination Longitude coordinate used |
|
|
Origin location string if available (Optional) |
|
|
Destination location string if available (Optional) |
2. Matrix No Traffic
Curl request
$ curl 'https://utils.limosys.net/geo/matrix?key=YOUR_GEO_API_KEY&origin=VALID_ORIGIN_1&destinations=VALID_DESTINATION_1' -i -X GET \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Accept: application/json'
HTTP request
GET /geo/matrix?key=YOUR_GEO_API_KEY&origin=VALID_ORIGIN_1&destinations=VALID_DESTINATION_1 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
Host: utils.limosys.net
HTTP response
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE
Access-Control-Max-Age: 3600
Access-Control-Allow-Headers: origin, content-type, accept, authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: Set-Cookie
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 197
{"matrix":[{"dist_meters":5000,"dist":3.1068559611866697,"time":5,"timeSeconds":300,"src":"LOCAL","brackets":[4,7],"lat1":25.5,"lon1":-25.5,"lat2":25.5,"lon2":-25.5}],"traffic":false,"status":"OK"}
HTTPie request
$ http GET 'https://utils.limosys.net/geo/matrix?key=YOUR_GEO_API_KEY&origin=VALID_ORIGIN_1&destinations=VALID_DESTINATION_1' \
'Content-Type:application/json;charset=UTF-8' \
'Accept:application/json'
Request body
Request parameters
Parameter | Description |
---|---|
|
Limosys API Key |
|
Origin list, semi colon separated |
|
Destinations list, semi colon separated |
|
Use traffic - 'yes' or 'no' |
|
Select 'no' to Avoid highways |
|
Traffic model to use - 'optimistic', 'pessimistic', 'best_guess' |
|
If 'yes' then thirdparty is prioritized |
|
Use one year hack where applicable |
|
What is result used for - code (e.g. "BID") - for logging purposes |
|
[For Testing] Use prediction for result and brackets - default "yes" |
|
Use cache if available - default "yes" |
Response body
{"matrix":[{"dist_meters":5000,"dist":3.1068559611866697,"time":5,"timeSeconds":300,"src":"LOCAL","brackets":[4,7],"lat1":25.5,"lon1":-25.5,"lat2":25.5,"lon2":-25.5}],"traffic":false,"status":"OK"}
Response fields
Path | Type | Description |
---|---|---|
|
|
Distance matrix results |
|
|
Whether traffic was used |
|
|
Used oneYearHack param - boolean |
|
|
OK or ERROR for whole result |
|
|
Distance in miles |
|
|
Time in minutes |
|
|
Time in seconds |
|
|
Source of data (provider) |
|
|
Algorithm used for ETA |
|
|
Traffic mode |
|
|
Result CACHED or NEW |
|
|
Distance in meters |
|
|
Estimated data from X to Y minutes |
|
|
Blank if OK, ERROR if single item failed |
|
|
Origin Latitude coordinate used |
|
|
Origin Longitude coordinate used |
|
|
Destination Latitude coordinate used |
|
|
Destination Longitude coordinate used |
|
|
Origin location string if available (Optional) |
|
|
Destination location string if available (Optional) |