Logo

nearestRegions

Returns a list of regions located near the specified location.

Request

curl -X GET 'https://data-api.oxilor.com/rest/nearest-regions' \
	-H 'Authorization: Bearer YOUR_API_KEY'

Arguments

Name
Type
Description
latitude
Optional
Float
The latitude of the location.
longitude
Optional
Float
The longitude of the location.
id
Optional
Int
The ID of the region relative to which the search will be performed.
first
Optional
Int
The number of regions.
type
Optional
String
The type of the region. Possible values: continent, country, division1, division2, division3, division4, city.

Response

The method return Region[].

Make a real request

URL:
Response:
The response will be here

Other methods

Determines whether the request is authorized.

Returns the region by ID.

Returns a list of all continents.

Returns a list of all countries.

Returns a list of regions.

Returns a list of regions located within the specified region.

Returns a list of regions by a search term.

Detects the region by the IP address.