Skip to content

Instantly share code, notes, and snippets.

@mcolmant
Last active August 8, 2019 06:34
Show Gist options
  • Save mcolmant/417a7a08562a5027818fce82ad338e1b to your computer and use it in GitHub Desktop.
Save mcolmant/417a7a08562a5027818fce82ad338e1b to your computer and use it in GitHub Desktop.

Mapwize / Spirals collaboration

Retrieve all Euratechnologies's POIs

curl -X GET \
  'https://api.mapwize.io/v1/places?api_key=${API_KEY}&venueId=56b20714c3fa800b00d8f0b5&isPublished=true'

Search for a direction in Euratechnologies

Example: From "Accueil" to "Mapwize".

curl -X POST \
  'https://api.mapwize.io/v1/directions?api_key=${API_KEY}' \
  -H 'Content-Type: application/json' \
  -d '{
  "from": {
    "placeId": "573f07cb8aa2f00b002d4e3e"
  },
  "to": [
      {
        "placeId": "5d08d8a4efe1d20012809ee5"
      }
    ]
}'

The Directions API is documented here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment