Skip to main content

Report POI

User is able to report poi when having a ride.

Create reported poi#

  • Url: https://velo-europe.de/api/{lang}/reported-poi
  • Method: POST
  • Authentication required
  • Content-Type: application/json

Request body#

  • name - string - required
  • street - string - required
  • city - string - required
  • country - string - required - 2 chars
  • email - string - required
  • tag - integer - required - tag id
  • lat - float - optional
  • lng - float - optional
  • images - array - optional - array of base64 encoded strings
{
"name": "new poi",
"street": "kossuth lajos ter",
"city": "budapest",
"country": "HU",
"email": "test@op.pl",
"lat": 51.2131,
"lng": 23.212
}

Response body#

{
"success": true
}

Example request#

curl --location --request POST 'https://velo-europe.de/api/de/reported-poi' \
--header 'Authorization: Bearer YzNjZWJiZjg1ZmU3ZGJiOGU3NzhhMjk3YjBkOTE3ZGJjMDAxNDc5NDExNWI3YTUzMzdkYWNlMmRmODAyNzFjMw' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "yea baby",
"street": "kupcyjna",
"city": "budapest",
"country": "HU",
"email": "test@op.pl",
"tag": 21
}'

List reported user reported pois#

  • Url: https://velo-europe.de/api/{lang}/reported-poi
  • Method: GET
  • Authentication required
  • Content-Type: application/json

Reported poi object#

  • id - integer - required
  • name - string - required
  • status - string - required
  • location - object - required
    • lat - float - optional
    • lng - float - optional
  • email - string - optional
  • phone - string - optional
  • address - object - required
    • street - string - optional
    • city - string - optional
    • zip_code - string - optional
    • country - string - optional

Example response#

  • data - array with Reported poi objects
  • success - boolean
{
"data": [
{
"id": 29,
"name": "Reported poi test",
"status": "STATUS_WAITING",
"location": {
"lat": null,
"lng": null
},
"email": null,
"phone": null,
"address": {
"street": "streetowy",
"zip_code": null,
"city": "Budapest",
"country": "Ungarn"
}
},
...
],
"success": true
}

Example request#

curl --location --request GET 'http://velo-europe.de/api/de/reported-poi' \
--header 'Authorization: Bearer ZDAzOTcxNDQ0OTI3YzVjZWQ5MWNhMzFiOGZkYTg1OWY4NDg1ZmE1NzZlMzdiNGUxMjE1OGNiN2VkY2I2MjkyNw'