City Data – Park and Ride

Transkrypt

City Data – Park and Ride
in association with
City Data – Park and Ride
API allows to obtain information (including location) about Park&Ride Parkings in city
of Warsaw for chosen area. API allows also to obtain information filtered by the
keys.
Request Parameters
The request parameters are optional. The parameters for data operation are
following:
maxFeatures: maximal number of results
bbox: coordinate of the rectangle points for selected area.
(bbox= min_lon,min_lat,max_lon,max_lat)
circle: coordinates of circle middle point longitude, latitude and radius r (meters)
separated by comas: x,y,r
filter: in form of XML for filtering results
(please check the documentation for supported filters)
Example 1 (maxFeatures)
getting of information about Park&Ride parkings in Warsaw (the first from the
database).
request:
https://api.bihapi.pl/wfs/warszawa/parkAndRide?maxFeatures=1
response:
{"data":[{"geometry":{"type":"point","coordinates":
{"lat":"52.290327","lon":"20.927564"}},"properties":
[{"key":"OBJECTID","value":"26"},
{"key":"OPIS","value":"Bielany, okolice skrzyżowania ulicy Kasprowicza i
Nocznickiego, przy węźle komunikacyjnym "Młociny""},
{"key":"AUTA","value":"1010"},
{"key":"MOTORY","value":"70"},
{"key":"NAZWA","value":"Parking P+R Metro Młociny"},
{"key":"NIEPELNO","value":"24"},
{"key":"AKTU_DAN","value":"styczeń 2014"}]}]}
1
in association with
Example 2 (bbox)
getting of information about Park&Ride parkings in Warsaw (area limited by a
rectangle)
request:
https://api.bihapi.pl/wfs/warszawa/parkAndRide?bbox=20.92,52.2877,21.20,52.
2904
Example 3 (circle)
getting of information about Park&Ride parkings in Warsaw (area limited by a circle)
request:
https://api.bihapi.pl/wfs/warszawa/parkAndRide?circle=20.9433,52.1750,10
Example 4 (maxFeatures&filter)
getting of information about Park&Ride parkings in Warsaw with total capacity
higher then 1000 car pools.
request:
https://api.bihapi.pl/wfs/warszawa/parkAndRide?filter=<Filter><PropertyIsGr
eaterThan><PropertyName>AUTA</PropertyName><Literal>1000</Literal></Propert
yIsGreaterThan></Filter>
2

Podobne dokumenty