Autocomplete Boundary Search beta
GET/v4/boundaries/autocomplete
This endpoint is in beta and not yet ready for production. Check out the LiveBy API Beta Endpoints Program for more information.
This endpoint returns a list of boundaries based on search criteria.
Request
Query Parameters
- King
- Miami-Dade
- Los Alamos
The text search query you would like to use to search for boundaries. All searches are case-insensitive.
The layer or layers you seek to obtain boundary information from.
Possible values: [city, postal-code, area-level-1, area-level-2, postal-city, district, neighborhood, micro-neighborhood, subdivision, school-district, school-attendance-area]
Default value: [postal-code, neighborhood, district, city, area-level-1, area-level-2]
The first political subdivision of a country for which you seek to obtain boundary information from. Common equivalents are states or provinces. Use the full name.
The second political subdivision of a country which you seek to obtain boundary information from. Common equivalents are Counties or Parishes Use the full name. Not guaranteed in every country.
Example: King
Example: Miami-Dade
Example: Los Alamos
The MLS code you want associated boundary IDs from.
The latitude used to sort-by distance
The longitude used to sort-by distance
Sort by the following parameters. By default, they will be sorted in order of how well they match the search (score).
Possible values: [score, name, layer, population, distance]
Default value: score
Direction to sort the results.
Possible values: [asc, desc]
Default value: desc
The number of records you would like returned. The default is 20, the maximum is 50.
Default value: 20
Used for pagination, the number of records for the collection to skip.
Default value: 0
Responses
- 200
- 401
- 403
- 429
- 500
- 504
- application/json
- Schema
- Example (from schema)
Schema
Array [
- Polygon
- LineString
- Point
Array [
]
Array [
]
Array [
]
]
pagination
object
required
data
object[]
The LiveBy Boundary ID.
boundingBox
object
required
coordinates
object
required
oneOf
Possible values: >= 2, <= 2
number
address
object
required
{
"success": true,
"pagination": {
"pageTotal": 0,
"limit": 0,
"offset": 0
},
"data": [
{
"id": "string",
"layer": "string",
"name": "string",
"vectorTileId": 0,
"boundingBox": {
"type": "string",
"coordinates": [
[
[
0
]
]
]
},
"address": {
"postcode": "string",
"city": "string",
"municipality": "string",
"village": "string",
"district": "string",
"subdistrict": "string",
"archipelago": "string",
"territory": "string",
"island": "string",
"province": "string",
"state": "string",
"county": "string",
"township": "string",
"region": "string",
"town": "string",
"locality": "string"
}
}
]
}
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
Service Unavailable