1.4.0 • Published 5 years ago
@stadtulm/leaflet-gbfs v1.4.0
leaflet-gbfs
Leaflet plugin to show GBFS data.
Still work in progress...
Getting Started
$ git clone https://github.com/stadtulm/leaflet-gbfs
$ cd leaflet-gbfs
$ npm install
$ npm run buildOptions
var gbfs = new L.GBFS({ gbfsURL: 'https://api.openbike.ulm.dev/gbfs/gbfs.json' }).addTo(map);
gbfsURLis the only required option. This should be the complete URL to the gbfs.json.languagedefines the GBFS feed language fromgbfs.jsonshould be used. If no language is set the first language ingbfs.jsonis used.intervaldefines how often new data from GBFS feed is requested. unit: milliseconds, default:60 * 1000