mobility-toolbox-js
v3.1.0
Published
Toolbox for JavaScript applications in the domains of mobility and logistics.
Downloads
3,899
Readme
mobility-toolbox-js
Toolbox for JavaScript applications in the domains of mobility and logistics. The tools in this library have been inspired by many projects realized for public transport agencies, mobility providers and logistics companies.
Documentation and examples
Visit https://mobility-toolbox-js.geops.io/
Demos
- Display real-time vehicle positions and prognosis data on a map.
- Search for stops and stations all over the world.
- Get precise geographic courses for all modes of transport.
- Generate beautiful schematic or topographic maps for public transport, mobility and logistics.
Install
Install the library and the peer dependencies:
yarn add ol maplibre-gl mobility-toolbox-js
Development
yarn install
yarn dev
yarn dev
starts a vite server using the index.html
file at the root of the project.
This html file loads the dev.js
file. Use this file to develop the library.
Each time you modifiy the library code you have to run yarn build:tsc
to see the changes.
Development documentation
The documentations website is located in the doc/
folder.
It's a nextJS website that use the mobility-toolbox-js library built from the build/
folder.
Deploy
This library website is deployed automatically using Vercel. For Vercel we have to add the nextjs and raw-loader modules in the dev dependencies of the main package.json. But those 2 librairies are not needed to build the library.