GSC RoutingService - GeoSmartCity-CIP/gsc-opentripplanner GitHub Wiki
Routing service
Description
The Routing service should use a WFS provided by Girona in order to allow the routing calculation between two addresses.
The WFS should provice the fowllowing data:
-
Street traffic density -
Bike lanes -
Width of streets -
Street typologies, depending on type of buildings aside
This data will be ingested in ghe GSC database and will be avaiable to the routing service.
Work done
Development completed and deployment on hub.geosmartcity.eu
Work remaining
Integrated test
Current issues
None
Detail
Rest API GET
There is a Service in REST API GET to get the route in GeoJson format.
http://hub.geosmartcity.eu/GironaRouting/geo/RestService/getroute?x1={Latitude Starting Point}&y1={Longitude Starting Point}&x2={Latitude Ending Point}&y2={Longitude Starting Point}
Rest API POST
There is a Service in REST API POST to get the route in GeoJson format.
POST /getroute?x1={Latitude Starting Point}&y1={Longitude Starting Point}&x2={Latitude Ending Point}&y2={Longitude Starting Point}
HTTP/1.1
Content-Length: 0
Host: http://hub.geosmartcity.eu/GironaRouting/geo/RestService
PS. The points must be inside the extent of Girona, Spain.