Oneway Data API
July 7, 2024 ยท View on GitHub
The ImproveOSM project has been cancelled by Grab, hence, this repository is obsolete.
Oneway Data API
This is an API to get the latest oneway data from improveosm.org
It consists mainly of two files:
update.php
- Used to get the latest data from the server (should be run daily)
- Invoke for example via cron as
php -f update.php
index.php
- Used to get the data for a specified bounding box
- The bounding box must be passed as an URL parameter
- Example:
/index.php/?bbox=18,-34,19,-33gets all ways in Cape Town
Configuration & Deployment
- Copy everything into a web directory of your choice
- Create a
config.phpfile from theconfig.sample.phptemplate and fill it with your MySQL DB settings. Don't forget to create the respective DB and user beforehand. - Set up a daily scheduled execution of update.php (at midnight UTC+0 is good)
Getting started
- Website for testing
- Issue #1022 of StreetComplete (The reason why this repository was created)