Skip to content
Andrea Di Nora edited this page Dec 21, 2015 · 3 revisions

This service will implement the calculation of the nearest available parking areas.

This service will indeed calculate the paths from a given departure point to all the different parking areas within a certain distance range.

No specific destination point is needed, hence one of the most important parameters in the majority of the planning request will not be needed: the toPlace parameter.

To enable such requests it is necessary to set the mode parameter to a specific value: mode=CAR_DRIVETOPARK.

In addition to this, a new optional parameter has been defined: carToParkRange=10 through it the user may specify the size of the research buffer.

If not specified it will default to 500mt.

Moreover users are not allowed to use values greater than 2000, an error will be thrown otherwise.

A sample request for this service is:

http://hub.geosmartcity.eu/otp/routers/default/plan?fromPlace=60.451123027562986%2C22.26929783821106&time=9%3A24am&date=12-07-2015&mode=CAR_DRIVETOPARK&maxWalkDistance=804.672&arriveBy=false&wheelchair=false&locale=en&carToParkRange=1000

Clone this wiki locally