Skip to content

Datadive September 2023

Pre-release
Pre-release

Choose a tag to compare

@Zebreu Zebreu released this 16 Sep 03:01
· 3 commits to seb/apiendpoints since this release
1eac92b

This release offers some more robustness features and a preview of using HTTP requests to communicate with the routing tool.

Super quick instructions:

Install yq and docker.

sh s_build_docker_dev.sh

docker run --network host dkroutingtool:dev /opt/conda/bin/python src/py/server.py

Then in a different terminal:

curl -X "POST" "localhost:5001/provide_files" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "files=@local_data/customer_data.xlsx" -F "files=@local_data/config.json" -F "files=@local_data/extra_points.csv"

curl http://localhost:5001/get_solution

curl -o download.zip http://localhost:5001/download

A file representing a small area is attached, edit the url in build_parameters.yml with:
geofabrik-url: https://github.com/datakind/dk-routing/releases/download/datadive_2023/Brooklyn.osm.pbf