FÖLLÄRI - Kaupunkipyörät

CITYBIKE -rajapinnan kautta on saatavilla Turun alueen kaupunkipyörien noutopisteiden sijainnit ja tilatieto. Tieto on saatavilla kolmessa eri JSON-formaatissa.

Yleinen tilatieto

Käytettävissä on url:t :

http://data.foli.fi/citybike/pretty
{
   "racks": {
     "nb_4257169": {
       "id": "nb_4257169",
       "operator": "nextbike",
       "name": "Demo Turku",
       "last_seen": 1524729304,
       "lon": 22.263973,
       "lat": 60.446297,
       "bikes_avail": 0,
       "slots_total": 10,
       "slots_avail": 8
     },
     "nb_6945906": {
     "id": "nb_6945906",
     /* ... */
   "operators": {
     "nextbike": {
       "id": "nextbike",
       "name": "Nextbike",
       "email": "+",
       "hotline": "+",
       "website": "https:\/\/nextbike.pl"
     }
   },
   "racks_total": 3,
   "bikes_total_avail": 2,
   "generated": 1524729348,
   "lastupdate": 1524729304
 }
	

SMOOVE-formaatti

http://data.foli.fi/citybike/smoove
{
   "result": [
     {
       "avl_bikes": 0,
       "free_slots": 8,
       "total_slots": 10,
       "operative": true,
       "style": "Station on",
       "name": "NB4257169 Demo Turku",
       "coordinates": "60.4463,22.264"
     },
     /* .... */
     {
       "avl_bikes": 1,
       "free_slots": 0,
       "total_slots": 0,
       "operative": true,
       "style": "Station on",
       "name": "NB7048461 Iso-Heikkiläntie",
       "coordinates": "60.4499,22.2339"
     }
   ]
}
	

GeoJSON-formaatti

http://data.foli.fi/citybike/geojson
{
   "type": "FeatureCollection",
   "features": [
     {
       "id": "nb_4257169",
       "type": "Feature",
       "geometry": {
         "type": "Point",
         "coordinates": [
           22.263973,
           60.446297
         ]
       },
       "properties": {
         "operator": "nextbike",
         "name": "Demo Turku",
         "last_seen": 1524723858,
         "bikes_avail": 0,
         "slots_avail": 8,
         "slots_total": 10
       }
     },
     /* ... */
     }
   ]
 }