Skip to main content

Reporting new stage

This page describes how to report new stage not connected with any route (free ride).

Starting route#

  • Url: `https://velo-europe.de/api/{lang}/report-track-stage
  • Method: POST
  • Authentication required
  • Content-Type: application/json
  • Required parameters in json request body:
    • name - string - name of user's route
    • description - string - optional description
    • coordinates - array of objects - required
      • single coordinate object contains:
        • lat - float - required
        • lng - float - required
        • el - int | float - required (elevation)

Example request body#

{
"name": "this is name",
"coordinates" : [
{
"lat" : 50.257640112446786,
"lng" : 19.037681129286682,
"el": 15
},
{
"lat" : 50.2574034647517,
"lng" : 19.035095479789803,
"el": 20
},
{
"lat" : 50.25784932172868,
"lng" : 19.031104352956895,
"el": 35
},
{
"lat" : 50.25784932172888,
"lng" : 19.031104352956855,
"el": 35
},
{
"lat" : 50.25784932172254,
"lng" : 19.031104352956866,
"el": 35
},
{
"lat" : 50.25784932172254,
"lng" : 19.04755514928,
"el": 35
}
]
}

Returned data#

  • simple object with success - boolean field
{
"success": true
}

or ..

400 error with errors in json response data.