Quickstart

Learn how to use the Features4 API to get spatial features for you locations:

To get your first feature (the number of bars within 500m Munich's city center) follow these steps:

curl https://api.features4.com/v1/number \
  -u API_TEST_KEY: \
  -H "Content-Type: application/json" \
  -d '{"location": {"lat": 48.137, "lng": 11.576}, "element": "bar", "radius": 500}'

Great, you already got your first feature:

{
  "name": "number_bar_radius_500m",
  "value": 24
}

You can see that there are 24 bars within 500m of the center of Munich.

Feel free to play around with other locations or elements.

Where to go from here?