-
Notifications
You must be signed in to change notification settings - Fork 0
Rail Reversegeocode
Aim: Request a Rail-Reversegeocode (RGC) service with a geo position to get a list of possible / reasonable responses
- p: List of Points (lan, lon) - currently only one point is supported
- type: only json currently supported
- distkm: radius distance for search
- count: maximum number of results
- cache: 1 or 0 means to use cache or not
- key: user key
If you want to use the test-server simply reqest a key per mail.
[http://rs.softwareengel.de:8090/railservice/api/1/reversegeocode?p=48.416298%2C9.8952116&type=json&distkm=40&count=10&cache=0&key=xxx] (http://rs.softwareengel.de:8090/railservice/api/1/reversegeocode?p=48.416298%2C9.8952116&type=json&distkm=40&count=10&cache=0&key=xxx)
{
"queryParams": {
"p": ["48.416298,9.8952116"],
"cache": ["0"],
"count": ["2"],
"distkm": ["40"],
"type": ["json"],
"key": ["xxx"]
},
"results": [
{
"key": "DB:SNode-1488330",
"distance_km": 0.2445,
"long_name": "",
"short_name": "",
"type": "",
"coordinates": "(9.897729456424713, 48.417725235215556)",
"degree": 60.47052415770088,
"memberinfolist": {
"geographicalName": "Herrlingen",
"railwayStationCode": "THL"
},
"status": "OK"
},
{
"key": "OSMS:894417736",
"distance_km": 0.2529,
"long_name": "",
"short_name": "",
"type": "",
"coordinates": "(9.897729456424713, 48.41782408934077)",
"degree": 58.791214413395664,
"memberinfolist": {"geographicalName": "Herrlingen"},
"status": "OK"
}
],
"serverinfo": ""
}