I currently have a long-running scrape that collects geojson data for Zürich bike-sharing. Each file is appended with a timestamp of when it was collected. The file structure doesn't change.

What's the best way to share multiple geojsons (timeseries)?

The data once packaged should be publicly available, but as individual files it's becoming cumbersome.

Some options I've considered

  • (current solution) One big folder in git, with individual files

    • (good) Can be viewed on the map
    • (bad) Needs to be downloaded all together as zip or git pull/clone
  • One big file with individual rows per geojson? e.g. jsonlines http://jsonlines.org/ (always updating)

    • (good) Easy to parse
    • (bad) Many versions of the same file will exist
  • Individual zips, based on time range? (no updates to historical files)

    • (good) easy to understand and access
    • (bad) takes time to package files



Related question, but not a useful answer: https://gis.stackexchange.com/q/131920/112869

  • 1
    til about jsonlines....neat – albert Mar 25 at 16:32
  • 1
    for the current solution, under bad, why do they have to be downloaded together? can't users just download from individual uri, like this: raw.githubusercontent.com/swiss-bike-data/… – albert Mar 25 at 16:34
  • 1
    @albert if I host in a bucket, it works ok with gsutil, which has some rsync capabilities. But otherwise you’d have to list the folder and then download one by one. I assume most users want all files at once. – philshem Mar 25 at 18:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.