Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 894 Bytes

ep-manager.md

File metadata and controls

50 lines (29 loc) · 894 Bytes

EXCHANGEPOINT MANAGER

mongodb models to store ojp exchangepoints

TODO download.sh script to download remote exchangepoint

TODO maybe include NETEXT IFOPT https://github.com/NeTEx-CEN/NeTEx/blob/master/xsd/ifopt.xsd

import exchange points CSV data manually

locale data:

CSV_VERSION=10 node import.js

or from remote resource:

CSV_URL=https://remote-resource.com/exchange-points.csv node import.js

environment

CSV_VERSION is directory inside csvs default is version param inside config.yml

CSV_AUTOIMPORT is True enable auto import of exchange points csv data into database at startup

CSV_URL remote URI of exchange point in csv format

usage in docker

docker-compose up ep-manager

browse: http://localhost:8083/

browse: http://localhost:8083/geojson

development mode

docker-compose up db
npm run dev