Skip to content

Instantly share code, notes, and snippets.

@ihabunek
Last active September 6, 2022 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ihabunek/ef27ee5c4f22ec81779d89b799e6dcda to your computer and use it in GitHub Desktop.
Save ihabunek/ef27ee5c4f22ec81779d89b799e6dcda to your computer and use it in GitHub Desktop.

Pozicije autobusa generirane iz podataka koje objavljuje Autotrolej.

GeoJSON generiran iz APIja koristeći curl i jq:

curl http://e-usluge2.rijeka.hr/OpenData/AtPoz.php\?type\=json | jq '{"type": "FeatureCollection", "features": map({"type": "Feature", "geometry": { "type": "Point", "coordinates": [.GpsY, .GpsX]}, properties: .})}'
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment