858 B
858 B
Pipeline route calculation
A function that exposes the pipeline route calculations.
The pipeline route can be defined by various means
kmlroute filekmzroute filecsvof the x,y, and optionally z coordinates of the pipeline.
If the elevation is missing, we utilise one of the following services to obtain the elevation of each waypoint on the pipeline.
- Google maps
- Map box
- Open elevation
Input
Arguments
- TODO
Environment
ORG_ID: the organization idPROJECT_ID: the id of the data project where the pipeline data is foundENV: the environment of the platform e.g.devorstgetc.
Testing the function locally
You can run and test the function locally by running
cargo run
Then you can check it work with curl as follows
curl -X POST localhost:8080 -v \
-d "TODO"