6fc3e9c2eef34519a93ef6a96ea.../README.md
2025-03-31 10:15:44 +00:00

858 B

Pipeline route calculation

A function that exposes the pipeline route calculations.

The pipeline route can be defined by various means

  • kml route file
  • kmz route file
  • csv of 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 id
  • PROJECT_ID: the id of the data project where the pipeline data is found
  • ENV: the environment of the platform e.g. dev or stg etc.

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"