Giter VIP home page Giter VIP logo

moqo2gbfs's Introduction

moqo2gbfs

moqo2gbfs is a small python script, which generates a GBFS feed from MOQO's API.

To generate a feed for e.g. BARshare network, execute

python moqoToGBFS.py -t <secret> -b https://portal.moqo.de/api_aggregator/ -c BARshare

where needs to be replaced by the MOQO API secret.

Note: Not every GBFS information can be retrieved from the API. The content of system_information and system_pricing_plans is hard coded in moqoToGBFS.py and need to be updated, if this information changes.

Using Docker

docker build -t mfdz/moqo2gbfs .
docker run --rm -v $PWD/out:/usr/src/app/out mfdz/moqo2gbfs moqoToGBFS.py -t <secret> -b https://data.mfdz.de/gbfs/barshare -s https://portal.moqo.de/api_aggregator/ -c BARshare

Documentation

MOQO-API-Documentation is available here: https://source.digital-mobility.solutions/moqo-public/aggregator-api/-/blob/master/aggregator_openapi.yaml

moqo2gbfs's People

Contributors

derhuerst avatar hbruch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.