Download features within a radius around an address (or coordinates), matching given tags as GeoJSON.
address
extending radius
meters out.
For example, these are the results for building=*
within radius=1000
meters of
San Francisco International Airport’s address:
key=value
or key=*
, and can chain tags if you need 2+ tags.
key=value
to filter features for.
All features extracted will satisfy each of the passed tags given by this parameter.This tag list can be created by forming an array of key=value
items and joining
them into one string with the &
character.Because both =
and &
are reserved characters in URIs, this list must be URL encoded.An example list of tags could be leisure=park
and name=Westglen Park
. This matches parks
that have the name Westglen Park. To set this parameter,
we’ll URL encode leisure=park&name=Westglen Park
.Documentation on tags can be found on the TagInfo resource website.longitude,latitude
. One of center
or address
is required.335 McAllister St, San Francisco, CA 94102
. One of center
or address
is required.address
requires the growth plan because it consumes third-party geocoding resources.simplify=point
, which turns
every output geometry into a single point (its centroid).This is convenient for approximating LineStrings and MultiPolygons as their
central point.Note the centroid may fall outside the original polygon, e.g. a donut’s
centroid is outside the ring.Content-Type: application/json
. The body will be a valid GeoJSON
FeatureCollection.
In the event of an error, an error response will be issued, usually with a 5xx error code.
The error will be JSON-formatted, with an error
field describing the cause.