{ "features": [{ "type": "Feature", "properties": { "addr:city": "Santa Fe", "addr:housenumber": "490", "addr:postcode": "87501", "addr:street": "Old Santa Fe Trail", "building": "yes", "name": "New Mexico State Capitol", "wikipedia": "en:New Mexico State Capitol" }, "geometry": { "type": "Point", "coordinates": [ -105.9396344, 35.6823018 ] } }], "type": "FeatureCollection"}
This endpoint downloads OpenStreetMap features that are inside a circle, centered
at address extending radius meters out.For example, these are the results for building=* within radius=1000 meters of
San Francisco International Airport’s address:You can filter for any tag in the database, either as key=value
or key=*, and can chain tags if you need 2+ tags.
This is a list of tags in the form 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.
The center of the circle as a coordinate. Features falling inside the circle will be downloaded.The center coordinate is formatted as longitude,latitude. One of center or address is required.
The center of the circle as an address. Features falling inside the circle will be downloaded.If the address is ambiguous, the best result will be chosen, which may or may not be the target address.
To get the best results, provide the full address, including: building number, street name, city name,
state, zip code, and country.An example address is 335 McAllister St, San Francisco, CA 94102. One of center or address is required.
Providing an address requires the growth plan because it consumes third-party geocoding resources.
This optional parameter, when passed, simplifies the output
geometries. The only valid value is 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.
When the OSM feature extract is successfully created, a 200 OK response will be
issued, with 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.
{ "features": [{ "type": "Feature", "properties": { "addr:city": "Santa Fe", "addr:housenumber": "490", "addr:postcode": "87501", "addr:street": "Old Santa Fe Trail", "building": "yes", "name": "New Mexico State Capitol", "wikipedia": "en:New Mexico State Capitol" }, "geometry": { "type": "Point", "coordinates": [ -105.9396344, 35.6823018 ] } }], "type": "FeatureCollection"}
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Bunting Labs Docs","colors":{"primary":"#570DF8","light":"#e9d5ff","dark":"#14B8A6"},"favicon":"/logo/light.png","logo":{"light":"https://mintlify.s3.us-west-1.amazonaws.com/buntinglabs/logo/light.png","dark":"https://mintlify.s3.us-west-1.amazonaws.com/buntinglabs/logo/dark.png"},"navbar":{"links":[{"label":"Documentation","href":"https://docs.buntinglabs.com/"}],"primary":{"type":"button","label":"Get an API Key","href":"https://buntinglabs.com/account/register"}},"footer":{"socials":{"twitter":"https://twitter.com/BuntingLabs","github":"https://github.com/BuntingLabs","linkedin":"https://www.linkedin.com/company/bunting-labs/"}},"integrations":{"posthog":{"apiKey":"phc_zmDRTwTSkhXORGB1qzjSZIMH7N7DgG4qb0cxZFn2kQs"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"buntinglabs","hasAudioNarration":false,"actualSubdomain":"buntinglabs","customDomains":["docs.buntinglabs.com"],"gitSource":{"type":"github","owner":"buntinglabs","repo":"api-docs","deployBranch":"main","contentDirectory":"","mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a20c345a72b99776ad7b5e8","collectionId":"ad22f707-a686-4912-a8d0-481096f87187","schemaVersion":"v2"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a20c345a72b99776ad7b5e8:success","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"OpenStreetMap API","count":7},{"language":"default","tag":"US Census API","count":2},{"language":"default","tag":"Data from Satellite Imagery","count":1},{"language":"default","tag":"Coordinate Geometry API","count":1},{"language":"default","tag":"Home","count":1},{"language":"default","tag":"Points of Interest API","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"openstreetmap-api/extract-in-radius","slug":"/openstreetmap-api/extract-in-radius","pageMetadata":{"title":"Extract in Radius","description":"Download features within a radius around an address (or coordinates), matching given tags as GeoJSON.","api":"GET https://osm.buntinglabs.com/v1/osm/extract-in-radius","href":"/openstreetmap-api/extract-in-radius"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Download features within a radius around an address (or coordinates), matching given tags as GeoJSON.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,img:`img`,p:`p`,..._provideComponents(),...props.components},{Heading,Note,ParamField,ResponseField}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`This endpoint downloads OpenStreetMap features that are inside a circle, centered\nat `,_jsx(_components.code,{children:`address`}),` extending `,_jsx(_components.code,{children:`radius`}),` meters out.`]}),`\n`,_jsxs(_components.p,{children:[`For example, these are the results for `,_jsx(_components.code,{children:`building=*`}),` within `,_jsx(_components.code,{children:`radius=1000`}),` meters of\nSan Francisco International Airport’s address:`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://mintlify.s3-us-west-1.amazonaws.com/buntinglabs/images/buildings_circle.png`,alt:`openstreetmap features in radius`})}),`\n`,_jsxs(_components.p,{children:[`You can filter for any tag in the `,_jsx(_components.a,{href:`https://taginfo.openstreetmap.org/`,children:`database`}),`, either as `,_jsx(_components.code,{children:`key=value`}),`\nor `,_jsx(_components.code,{children:`key=*`}),`, and can chain tags if you need 2+ tags.`]}),`\n`,_jsx(Heading,{level:`3`,id:`request-parameters`,children:`Request Parameters`}),`\n`,_jsxs(ParamField,{query:`tags`,type:`string`,placeholder:`leisure=park`,required:true,id:`param-tags`,children:[_jsxs(_components.p,{children:[`This is a list of tags in the form `,_jsx(_components.code,{children:`key=value`}),` to filter features for.\nAll features extracted will satisfy each of the passed tags given by this parameter.`]}),_jsxs(_components.p,{children:[`This tag list can be created by forming an array of `,_jsx(_components.code,{children:`key=value`}),` items and joining\nthem into one string with the `,_jsx(_components.code,{children:`\u0026`}),` character.`]}),_jsxs(_components.p,{children:[`Because both `,_jsx(_components.code,{children:`=`}),` and `,_jsx(_components.code,{children:`\u0026`}),` are reserved characters in URIs, this list must be URL encoded.`]}),_jsxs(_components.p,{children:[`An example list of tags could be `,_jsx(_components.code,{children:`leisure=park`}),` and `,_jsx(_components.code,{children:`name=Westglen Park`}),`. This matches parks\nthat have the name Westglen Park. To set this parameter,\nwe’ll URL encode `,_jsx(_components.code,{children:`leisure=park\u0026name=Westglen Park`}),`.`]}),_jsxs(_components.p,{children:[`Documentation on tags can be found on the `,_jsx(_components.a,{href:`https://taginfo.openstreetmap.org`,children:`TagInfo`}),` resource website.`]})]}),`\n`,_jsx(ParamField,{query:`api_key`,type:`string`,placeholder:`demo`,required:true,id:`param-api-key`,children:_jsxs(_components.p,{children:[`Your account’s API key. You can create an API key by\n`,_jsx(_components.a,{href:`https://buntinglabs.com/account/register`,children:`registering for an account`}),`\nand copy and paste it from your `,_jsx(_components.a,{href:`https://buntinglabs.com/dashboard`,children:`account dashboard`}),`.`]})}),`\n`,_jsxs(ParamField,{query:`center`,type:`string`,placeholder:`-108.984,32.026`,id:`param-center`,children:[_jsx(_components.p,{children:`The center of the circle as a coordinate. Features falling inside the circle will be downloaded.`}),_jsxs(_components.p,{children:[`The center coordinate is formatted as `,_jsx(_components.code,{children:`longitude,latitude`}),`. One of `,_jsx(_components.code,{children:`center`}),` or `,_jsx(_components.code,{children:`address`}),` is required.`]})]}),`\n`,_jsxs(ParamField,{query:`address`,type:`string`,placeholder:`335 McAllister St, San Francisco, CA 94102`,id:`param-address`,children:[_jsx(_components.p,{children:`The center of the circle as an address. Features falling inside the circle will be downloaded.`}),_jsx(_components.p,{children:`If the address is ambiguous, the best result will be chosen, which may or may not be the target address.\nTo get the best results, provide the full address, including: building number, street name, city name,\nstate, zip code, and country.`}),_jsxs(_components.p,{children:[`An example address is `,_jsx(_components.code,{children:`335 McAllister St, San Francisco, CA 94102`}),`. One of `,_jsx(_components.code,{children:`center`}),` or `,_jsx(_components.code,{children:`address`}),` is required.`]}),_jsxs(Note,{children:[`Providing an `,_jsx(_components.code,{children:`address`}),` requires the `,_jsx(_components.a,{href:`https://buntinglabs.com/pricing`,children:`growth plan`}),` because it consumes third-party geocoding resources.`]})]}),`\n`,_jsx(ParamField,{query:`radius`,type:`number`,placeholder:`1000`,required:true,id:`param-radius`,children:_jsx(_components.p,{children:`The radius around the center, in meters. Maximum radius is 16,093 meters (10 miles).`})}),`\n`,_jsxs(ParamField,{query:`simplify`,type:`string`,id:`param-simplify`,children:[_jsxs(_components.p,{children:[`This optional parameter, when passed, simplifies the output\ngeometries. The only valid value is `,_jsx(_components.code,{children:`simplify=point`}),`, which turns\nevery output geometry into a single point (its centroid).`]}),_jsx(_components.p,{children:`This is convenient for approximating LineStrings and MultiPolygons as their\ncentral point.`}),_jsx(_components.p,{children:`Note the centroid may fall outside the original polygon, e.g. a donut’s\ncentroid is outside the ring.`})]}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`When the OSM feature extract is successfully created, a 200 OK response will be\nissued, with `,_jsx(_components.code,{children:`Content-Type: application/json`}),`. The body will be a valid `,_jsx(_components.a,{href:`https://geojson.org/`,children:`GeoJSON\nFeatureCollection`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`In the event of an error, an error response will be issued, usually with a 5xx error code.\nThe error will be JSON-formatted, with an `,_jsx(_components.code,{children:`error`}),` field describing the cause.`]}),`\n`,_jsxs(ResponseField,{name:`error`,type:`string`,id:`param-error`,children:[_jsx(_components.p,{children:`The error message if the extract request parameters were incorrectly formatted.`}),_jsx(_components.p,{children:`This response field will not be present if the extract succeeds.`})]}),`\n`,_jsx(Heading,{level:`3`,id:`data-license`,children:`Data License`}),`\n`,_jsxs(_components.p,{children:[`This API serves `,_jsx(_components.a,{href:`https://www.openstreetmap.org/`,children:`OpenStreetMap`}),` data, which is\nfreely available and is licensed under the\n`,_jsx(_components.a,{href:`https://www.openstreetmap.org/copyright`,children:`Open Data Commons Open Database License (ODbL)`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Extract in Radius","description":"Download features within a radius around an address (or coordinates), matching given tags as GeoJSON.","api":"GET https://osm.buntinglabs.com/v1/osm/extract-in-radius","href":"/openstreetmap-api/extract-in-radius"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,img:`img`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`This endpoint downloads OpenStreetMap features that are inside a circle, centered\nat `,_jsx(_components.code,{children:`address`}),` extending `,_jsx(_components.code,{children:`radius`}),` meters out.`]}),`\n`,_jsxs(_components.p,{children:[`For example, these are the results for `,_jsx(_components.code,{children:`building=*`}),` within `,_jsx(_components.code,{children:`radius=1000`}),` meters of\nSan Francisco International Airport’s address:`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://mintlify.s3-us-west-1.amazonaws.com/buntinglabs/images/buildings_circle.png`,alt:`openstreetmap features in radius`})}),`\n`,_jsxs(_components.p,{children:[`You can filter for any tag in the `,_jsx(_components.a,{href:`https://taginfo.openstreetmap.org/`,children:`database`}),`, either as `,_jsx(_components.code,{children:`key=value`}),`\nor `,_jsx(_components.code,{children:`key=*`}),`, and can chain tags if you need 2+ tags.`]}),`\n`,_jsx(Heading,{level:`3`,id:`request-parameters`,children:`Request Parameters`}),`\n`,_jsxs(ParamField,{query:`tags`,type:`string`,placeholder:`leisure=park`,required:true,id:`param-tags`,children:[_jsxs(_components.p,{children:[`This is a list of tags in the form `,_jsx(_components.code,{children:`key=value`}),` to filter features for.\nAll features extracted will satisfy each of the passed tags given by this parameter.`]}),_jsxs(_components.p,{children:[`This tag list can be created by forming an array of `,_jsx(_components.code,{children:`key=value`}),` items and joining\nthem into one string with the `,_jsx(_components.code,{children:`\u0026`}),` character.`]}),_jsxs(_components.p,{children:[`Because both `,_jsx(_components.code,{children:`=`}),` and `,_jsx(_components.code,{children:`\u0026`}),` are reserved characters in URIs, this list must be URL encoded.`]}),_jsxs(_components.p,{children:[`An example list of tags could be `,_jsx(_components.code,{children:`leisure=park`}),` and `,_jsx(_components.code,{children:`name=Westglen Park`}),`. This matches parks\nthat have the name Westglen Park. To set this parameter,\nwe’ll URL encode `,_jsx(_components.code,{children:`leisure=park\u0026name=Westglen Park`}),`.`]}),_jsxs(_components.p,{children:[`Documentation on tags can be found on the `,_jsx(_components.a,{href:`https://taginfo.openstreetmap.org`,children:`TagInfo`}),` resource website.`]})]}),`\n`,_jsx(ParamField,{query:`api_key`,type:`string`,placeholder:`demo`,required:true,id:`param-api-key`,children:_jsxs(_components.p,{children:[`Your account’s API key. You can create an API key by\n`,_jsx(_components.a,{href:`https://buntinglabs.com/account/register`,children:`registering for an account`}),`\nand copy and paste it from your `,_jsx(_components.a,{href:`https://buntinglabs.com/dashboard`,children:`account dashboard`}),`.`]})}),`\n`,_jsxs(ParamField,{query:`center`,type:`string`,placeholder:`-108.984,32.026`,id:`param-center`,children:[_jsx(_components.p,{children:`The center of the circle as a coordinate. Features falling inside the circle will be downloaded.`}),_jsxs(_components.p,{children:[`The center coordinate is formatted as `,_jsx(_components.code,{children:`longitude,latitude`}),`. One of `,_jsx(_components.code,{children:`center`}),` or `,_jsx(_components.code,{children:`address`}),` is required.`]})]}),`\n`,_jsxs(ParamField,{query:`address`,type:`string`,placeholder:`335 McAllister St, San Francisco, CA 94102`,id:`param-address`,children:[_jsx(_components.p,{children:`The center of the circle as an address. Features falling inside the circle will be downloaded.`}),_jsx(_components.p,{children:`If the address is ambiguous, the best result will be chosen, which may or may not be the target address.\nTo get the best results, provide the full address, including: building number, street name, city name,\nstate, zip code, and country.`}),_jsxs(_components.p,{children:[`An example address is `,_jsx(_components.code,{children:`335 McAllister St, San Francisco, CA 94102`}),`. One of `,_jsx(_components.code,{children:`center`}),` or `,_jsx(_components.code,{children:`address`}),` is required.`]}),_jsxs(Note,{children:[`Providing an `,_jsx(_components.code,{children:`address`}),` requires the `,_jsx(_components.a,{href:`https://buntinglabs.com/pricing`,children:`growth plan`}),` because it consumes third-party geocoding resources.`]})]}),`\n`,_jsx(ParamField,{query:`radius`,type:`number`,placeholder:`1000`,required:true,id:`param-radius`,children:_jsx(_components.p,{children:`The radius around the center, in meters. Maximum radius is 16,093 meters (10 miles).`})}),`\n`,_jsxs(ParamField,{query:`simplify`,type:`string`,id:`param-simplify`,children:[_jsxs(_components.p,{children:[`This optional parameter, when passed, simplifies the output\ngeometries. The only valid value is `,_jsx(_components.code,{children:`simplify=point`}),`, which turns\nevery output geometry into a single point (its centroid).`]}),_jsx(_components.p,{children:`This is convenient for approximating LineStrings and MultiPolygons as their\ncentral point.`}),_jsx(_components.p,{children:`Note the centroid may fall outside the original polygon, e.g. a donut’s\ncentroid is outside the ring.`})]}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`When the OSM feature extract is successfully created, a 200 OK response will be\nissued, with `,_jsx(_components.code,{children:`Content-Type: application/json`}),`. The body will be a valid `,_jsx(_components.a,{href:`https://geojson.org/`,children:`GeoJSON\nFeatureCollection`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`In the event of an error, an error response will be issued, usually with a 5xx error code.\nThe error will be JSON-formatted, with an `,_jsx(_components.code,{children:`error`}),` field describing the cause.`]}),`\n`,_jsxs(ResponseField,{name:`error`,type:`string`,id:`param-error`,children:[_jsx(_components.p,{children:`The error message if the extract request parameters were incorrectly formatted.`}),_jsx(_components.p,{children:`This response field will not be present if the extract succeeds.`})]}),`\n`,_jsx(Heading,{level:`3`,id:`data-license`,children:`Data License`}),`\n`,_jsxs(_components.p,{children:[`This API serves `,_jsx(_components.a,{href:`https://www.openstreetmap.org/`,children:`OpenStreetMap`}),` data, which is\nfreely available and is licensed under the\n`,_jsx(_components.a,{href:`https://www.openstreetmap.org/copyright`,children:`Open Data Commons Open Database License (ODbL)`}),`.`]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --get`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://osm.buntinglabs.com/v1/osm/extract-in-radius'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"address=1+Dr+Carlton+B+Goodlett+Pl+San Francisco+CA+94102\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"radius=1000\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"api_key=YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tags=amenity=restaurant\"`})]}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`19`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"features\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Feature\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"properties\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"addr:city\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Santa Fe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"addr:housenumber\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"490\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"addr:postcode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"87501\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"addr:street\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Old Santa Fe Trail\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"building\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"yes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"New Mexico State Capitol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"wikipedia\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"en:New Mexico State Capitol\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"geometry\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Point\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"coordinates\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [ `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`-105.9396344`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`35.6823018`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FeatureCollection\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Extract in Radius","description":"Download features within a radius around an address (or coordinates), matching given tags as GeoJSON.","api":"GET https://osm.buntinglabs.com/v1/osm/extract-in-radius","href":"/openstreetmap-api/extract-in-radius"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Request Parameters","slug":"request-parameters","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]},{"title":"Data License","slug":"data-license","depth":3,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --get\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://osm.buntinglabs.com/v1/osm/extract-in-radius'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"address=1+Dr+Carlton+B+Goodlett+Pl+San Francisco+CA+94102\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"radius=1000\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"api_key=YOUR_API_KEY\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"tags=amenity=restaurant\"\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"19\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"features\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Feature\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"properties\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"addr:city\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Santa Fe\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"addr:housenumber\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"490\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"addr:postcode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"87501\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"addr:street\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Old Santa Fe Trail\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"building\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"yes\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"New Mexico State Capitol\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"wikipedia\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"en:New Mexico State Capitol\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"geometry\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Point\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"coordinates\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [ \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">-105.9396344\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">35.6823018\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"FeatureCollection\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Extract in Radius","path":"/v1/osm/extract-in-radius","servers":[{"url":"https://osm.buntinglabs.com"}],"method":"get","request":{"security":[],"parameters":{"query":{"tags":{"schema":[{"type":"string","description":"This is a list of tags in the form `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 `\u0026` character. Because both `=` and `\u0026` 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\u0026name=Westglen Park` . Documentation on tags can be found on the TagInfo resource website.","required":true,"placeholder":"leisure=park"}]},"api_key":{"schema":[{"type":"string","description":"Your account’s API key. You can create an API key by registering for an account and copy and paste it from your account dashboard .","required":true,"placeholder":"demo"}]},"center":{"schema":[{"type":"string","description":"The center of the circle as a coordinate. Features falling inside the circle will be downloaded. The center coordinate is formatted as `longitude,latitude` . One of `center` or `address` is required.","placeholder":"-108.984,32.026"}]},"address":{"schema":[{"type":"string","description":"The center of the circle as an address. Features falling inside the circle will be downloaded. If the address is ambiguous, the best result will be chosen, which may or may not be the target address. To get the best results, provide the full address, including: building number, street name, city name, state, zip code, and country. An example address is `335 McAllister St, San Francisco, CA 94102` . One of `center` or `address` is required.","placeholder":"335 McAllister St, San Francisco, CA 94102"}]},"radius":{"schema":[{"type":"number","description":"The radius around the center, in meters. Maximum radius is 16,093 meters (10 miles).","required":true,"placeholder":"1000"}]},"simplify":{"schema":[{"type":"string","description":"This optional parameter, when passed, simplifies the output geometries. The only valid value is `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."}]}},"header":{},"cookie":{},"path":{}},"body":{}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"error":[{"type":"string","description":"The error message if the extract request parameters were incorrectly formatted. This response field will not be present if the extract succeeds."}]}}],"examples":{"example":{"value":{"error":"\u003cstring>"}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"buntinglabs","siteName":"Bunting Labs Docs","title":"Extract in Radius - Bunting Labs Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"openstreetmap-api/extract-in-radius.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Download features within a radius around an address (or coordinates), matching given tags as GeoJSON.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Bunting Labs Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/buntinglabs/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/buntinglabs/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/buntinglabs/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/buntinglabs/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Extract in Radius - Bunting Labs Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Download features within a radius around an address (or coordinates), matching given tags as GeoJSON.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Bunting Labs Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.buntinglabs.com/openstreetmap-api/extract-in-radius\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://buntinglabs.mintlify.app/_mintlify/api/og/v2?division=OpenStreetMap+API\u0026amp;title=Extract+in+Radius\u0026amp;description=Download+features+within+a+radius+around+an+address+%28or+coordinates%29%2C+matching+given+tags+as+GeoJSON.\u0026amp;theme=8ceb5110d3429f0627200ccd\u0026amp;signature=7f1e80ab21215ed1be9513916d05dbac55e759b62585de4ccabe8d8d74d99769\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Extract in Radius - Bunting Labs Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Download features within a radius around an address (or coordinates), matching given tags as GeoJSON.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://buntinglabs.mintlify.app/_mintlify/api/og/v2?division=OpenStreetMap+API\u0026amp;title=Extract+in+Radius\u0026amp;description=Download+features+within+a+radius+around+an+address+%28or+coordinates%29%2C+matching+given+tags+as+GeoJSON.\u0026amp;theme=8ceb5110d3429f0627200ccd\u0026amp;signature=7f1e80ab21215ed1be9513916d05dbac55e759b62585de4ccabe8d8d74d99769\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/buntinglabs/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Bunting Labs Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#570DF8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.buntinglabs.com/openstreetmap-api/extract-in-radius\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/openstreetmap-api/extract-in-radius.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.buntinglabs.com/#organization\",\"name\":\"Bunting Labs Docs\",\"url\":\"https://docs.buntinglabs.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintlify.s3.us-west-1.amazonaws.com/buntinglabs/logo/light.png\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.buntinglabs.com#website\",\"name\":\"Bunting Labs Docs\",\"url\":\"https://docs.buntinglabs.com\",\"publisher\":{\"@id\":\"https://docs.buntinglabs.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.buntinglabs.com/openstreetmap-api/extract-in-radius#webpage\",\"url\":\"https://docs.buntinglabs.com/openstreetmap-api/extract-in-radius\",\"name\":\"Extract in Radius\",\"description\":\"Download features within a radius around an address (or coordinates), matching given tags as GeoJSON.\",\"isPartOf\":{\"@id\":\"https://docs.buntinglabs.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.buntinglabs.com/openstreetmap-api/extract-in-radius#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.buntinglabs.com/openstreetmap-api/extract-in-radius#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"OpenStreetMap API\",\"item\":\"https://docs.buntinglabs.com/openstreetmap-api/using-osm-data\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Extract in Radius\",\"item\":\"https://docs.buntinglabs.com/openstreetmap-api/extract-in-radius\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.buntinglabs.com/openstreetmap-api/extract-in-radius#apireference\",\"headline\":\"Extract in Radius\",\"name\":\"Extract in Radius\",\"description\":\"Download features within a radius around an address (or coordinates), matching given tags as GeoJSON.\",\"url\":\"https://docs.buntinglabs.com/openstreetmap-api/extract-in-radius\",\"mainEntityOfPage\":{\"@id\":\"https://docs.buntinglabs.com/openstreetmap-api/extract-in-radius#webpage\"},\"publisher\":{\"@id\":\"https://docs.buntinglabs.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.buntinglabs.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Bunting Labs Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Bunting Labs Docs","nav":{"global":null,"groups":[{"group":"Home","pages":[{"title":"Introduction","href":"/introduction"}]},{"group":"OpenStreetMap API","pages":[{"title":"Using OSM Data","href":"/openstreetmap-api/using-osm-data"},{"title":"Extract Features","description":"This endpoint downloads features from OpenStreetMap based on tags and optionally a bounding box, resulting in a GeoJSON.","api":"GET https://osm.buntinglabs.com/v1/osm/extract","href":"/openstreetmap-api/extract"},{"title":"Extract in Radius","api":"GET https://osm.buntinglabs.com/v1/osm/extract-in-radius","href":"/openstreetmap-api/extract-in-radius"},{"title":"Extract within Geometry","description":"This endpoint downloads features matching tags inside an uploaded WKT geometry as GeoJSON.","api":"PUT https://osm.buntinglabs.com/v1/osm/extract","href":"/openstreetmap-api/extract-within-geometry"},{"title":"Count Features","api":"GET https://osm.buntinglabs.com/v1/osm/count","href":"/openstreetmap-api/count"},{"title":"Count within Geometry","api":"PUT https://osm.buntinglabs.com/v1/osm/count","href":"/openstreetmap-api/count-within-geometry"},{"title":"Search Tags","api":"GET https://osm.buntinglabs.com/v1/osm/tags","href":"/openstreetmap-api/search-tags"}]},{"group":"US Census API","pages":[{"title":"Population","api":"GET https://osm.buntinglabs.com/v1/census/population","href":"/census-api/population"},{"title":"Median Income","api":"GET https://osm.buntinglabs.com/v1/census/income","href":"/census-api/median-income"}]},{"group":"Points of Interest API","pages":[{"title":"Neighborhood Description","api":"POST https://osm.buntinglabs.com/v1/poi/neighborhood","href":"/poi-api/neighborhood"}]},{"group":"Data from Satellite Imagery","pages":[{"title":"Building Outlines","api":"GET https://osm.buntinglabs.com/v1/buildings/select","href":"/building-api/select-buildings"}]},{"group":"Coordinate Geometry API","pages":[{"title":"What is cogo","href":"/coordinate-geometry-api/what-is-cogo"},{"title":"Generate Metes","api":"POST https://osm.buntinglabs.com/v1/cogo/generate-metes","href":"/coordinate-geometry-api/generate-metes"},{"title":"Read metes","href":"/coordinate-geometry-api/read-metes"}]}]},"title":"Extract in Radius - Bunting Labs Docs","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a74be98ba7"],"chunks":["OpenApiReferenceProvider-26-lDe7V.js","utils-CWQmgYtH.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-4-Aw3rSD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C2zjXYA5.js","snippetPresets-DFmpFA7C.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-FJpQavWq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D_GvPF7k.js","shallow-Bs2ZB0NO.js","getApiPlaygroundDisplay-DCcqJJk-.js","CodeSnippet-DzDxawVe.js","CodeSnippets-aUr7fU-7.js","Page-CT9uE8Ip.js","getPastedJson-Y1fKsj_I.js","icon-DI4zTsDr.js","MethodPill-C0nDlmSQ.js","DuplicateIcon-NUXbx2nQ.js","createIcon-BdTHrPAi.js","DynamicMarkdown-CtpgKJwj.js","SectionHeading-B3x35tOt.js","axios-vUo_bRtp.js","zoom-image-lightbox-CVZVK4hN.js","lightbox-handle-r17bVUz3.js"]}