Skip to main content

Map settings

User is able to change his map settings.

Map settings object#

  • mapDisplayStyle - string - required - available values:
    • map
  • navigationDirection - string - required - available values:
    • north
    • path
  • poiVisibility - string - required - available values:
    • default
    • user
  • poiTags - array with integers - required - may be empty array, array filled with poi tag id
  • isOnlyPartnerPois - boolean - defines if returned map pois should be partners only

Get user map settings#

  • Url: https://velo-europe.de/api/{lang}/proxy/map-setting
  • Method: GET
  • Authentication required

Response body#

Map setting object

{
"mapDisplayStyle": "map",
"navigationDirection": "path",
"poiVisibility": "user",
"isOnlyPartnerPois": false,
"poiTags": [
9,
12,
17,
14,
19,
21,
16
]
}

Example request#

curl --location --request GET 'http://velo-europe.de/api/de/proxy/map-setting' \
--header 'Authorization: Bearer NTBiN2Q5ZjA1MzhkOGI2ZGI0ODZjZDNlNTkzOTM3NjUyOTY4MzUyOGUxODNjMDQwM2MxNDJhNjA2NWFmMjZlYw'

Post user map settings#

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

Request body#

Map setting object - all fields optional

{
"mapDisplayStyle": "map",
"poiTags": [19]
}

Response body#

{
"success": true,
"data": {
"mapDisplayStyle": "map",
"navigationDirection": "path",
"poiVisibility": "user",
"poiTags": [
19
]
}
}

Example request#

curl --location --request POST 'https://velo-europe.de/api/de/proxy/map-setting' \
--header 'Authorization: Bearer NTBiN2Q5ZjA1MzhkOGI2ZGI0ODZjZDNlNTkzOTM3NjUyOTY4MzUyOGUxODNjMDQwM2MxNDJhNjA2NWFmMjZlYw' \
--header 'Content-Type: application/json' \
--data-raw '{
"mapDisplayStyle": "map",
"poiTags": [19]
}'