Skip to content

Instantly share code, notes, and snippets.

View oobrien's full-sized avatar

Oliver O'Brien oobrien

View GitHub Profile
@dschep
dschep / JMSEPath-GBFS2GeoJSON.md
Last active June 12, 2019 18:03
JMSEPath Expressions to turn GBFS into GeoJSON

GBFS Bikes to GeoJSON

This creates a feature collection from the bikes endpoint of a GBFS service, such as JUMP DC's feed: https://dc.jumpmobility.com/opendata/free_bike_status.json

{type: `FeatureCollection`, features: data.bikes[*].{id: bike_id, geometry: {type: `Point`, coordinates: [lon, lat]}, properties: @}}

Example

GBFS Input:

{