{
"url":"https://api.geoconcept.com/EU/GCW/geoconcept-web/api/lbs/eta.json",
"type":"GET",
"params": {
"origin": {
"sample":"-1.351448,47.446923"
},
"destination": {
"sample":"-1.34529,47.4479931"
},
"configName": {
"sample":"car"
}
}
}
| parameter | description | optional | default |
|---|---|---|---|
|
configName |
Name of the configuration to use: |
yes |
car |
|
origin |
Coordinates of the start point (longitude, latitude). |
no |
|
|
destination |
Coordinates of the end point (longitude,latitude). |
no |
|
|
srs |
projection (EPSG code such as epsg:4326 or wgs84) |
yes |
epsg:4326 |
Route (routeResult)
| parameter | type | min/max | description |
|---|---|---|---|
|
time |
double |
0/1 |
Remaining journey time in seconds. |
|
distance |
double |
0/1 |
Total route distance in meters. |
Case of a route found (etaResult/status is OK)
{
"time": 110,
"distance": 630
}
Case of a forgotten specification of a start or finish point (etaResult/status is ERROR)
{
"message": "ServiceException: invalid coordinates ''",
"status": "ERROR"
}
Case of a non existing graphName (etaResult/status is ERROR)
{
"message": "ServiceException: Cannot retrieve Graph Definition for configuration xxx",
"status": "ERROR"
}

