description
field
and put them in a vector database.
This makes it easy to search for particular features in English and
get the tag OSM uses for that feature. For example, searching “trail head”
gives highway=trailhead
as the first result, which is described as:
A trailhead (highway=trailhead
) is a designated or customary place where a trip on a trail begins or ends.
Multiple results are returned, ordered in increasing dist
. This allows for
autocomplete text boxes, where a user can type in their query and then select
the exact tag they want to use.
Request Parameters
The search query that OSM tags and their descriptions will be compared to.More information about tags can be found on the TagInfo resource website.
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.
Response
A successful search query will give a 200 OK response withContent-Type: application/json
.
Results look like this (query was “national park”):
error
field describing the cause.
The error message if the extract request parameters were incorrectly formatted.This response field will not be present if the extract succeeds.