Skip to content

v2: Scripts for importing locations of bikes within bike-sharing systems, from MDS/GBFS/TOMP datafeeds

License

Notifications You must be signed in to change notification settings

Stichting-CROW/dd-importer-v2

Repository files navigation

go-import-vehicles

Introduction

The goal of this app is to collect shared mobility data of different providers into one database.

This database can be used by municipalities and other govermental organisations that are granted access by CROW.

The data can be accessed by going to https://deelfietsdashboard.nl/ and https://dashboarddeelmobiliteit.nl/ .

Features

This app runs continuously:

  • It polls MDS/GBFS/TOMP API's
  • It stores aggregated data in the postgresql database

How to install

Install go, see https://go.dev/doc/install

Install redis, i.e. sudo apt-get install redis

Install tile38, i.e. https://github.com/tidwall/tile38/releases

Run:

export DEV=false
export DB_NAME=deelfietsdashboard
export DB_USER=deelfietsdashboard
export DB_HOST=localhost
export DB_PASSWORD=X
export REDIS_HOST=localhost:6379
export TILE38_HOST=localhost:9851

How to run

Start postgres.

Start redis-server:

redis-server

Start tile38-server:

./tile38-server --appendonly no

Run:

export DEV=false
export DB_NAME=deelfietsdashboard
export DB_USER=deelfietsdashboard
export DB_HOST=localhost
export DB_PASSWORD=x
export REDIS_HOST=localhost:6379
export TILE38_HOST=localhost:9851

/usr/local/go/bin/go run .

Questions?

Email to [email protected]

About

v2: Scripts for importing locations of bikes within bike-sharing systems, from MDS/GBFS/TOMP datafeeds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published