Search Geolocations within a specified distance from a Geoposition
This method allows you to search for geolocations within the specified distance from a geoposition. The maximum distance that you can search for a geolocation is 20,000 meters.
Base URI: https://<server address>/geolocation/v1/GeoTest/Search/Within/GeoPosition
Request
URI: /geolocation/v1/GeoTest/Search/Within/GeoPosition
HTTP: GET
Roles Required: Geolocation_Viewer, Geolocation_Editor, Geolocation_Super_Editor
For more information on Roles and Permissions, see Role Template and Scopes
Request Parameters
|
Name |
Required |
Data Type |
Description |
|---|---|---|---|
|
Latitude |
Yes |
double |
Latitude in degrees, ranges from -ve 90 to +ive 90. For example, 13.1217 |
|
Longitude |
Yes |
double |
Longitude in degrees, ranges from -ve 180 to +ive 180. For example, 77.5804 |
|
Distance |
Optional |
double |
Distance in meters. For example, 10. The default value is 0. |
|
SpaceId |
Optional |
string |
ID of the geolocation space to be searched. The default value is ALL. |
|
$skip |
Optional |
integer |
The number of entities to be skipped. The default value is 0. |
|
$top |
Optional |
integer |
The number of entities to be returned. The default value is 10. |
Request Header
|
Name |
Required |
Data Type |
Description |
|---|---|---|---|
|
Accept-Language |
Yes |
string |
Accept language header |
/geolocation/v1/GeoTest/Search/Within/GeoPosition
Response
Format: JSON
Sample Response|
Code |
Description |
|---|---|
|
200 |
Retrieved the geolocations within specified distance from a geoposition |
|
400 |
Invalid request. Wrong format or structure of the provided request body |
|
403 |
Access denied. You did not have the required permissions to access the resource. |
|
500 |
Internal server error. The operation you requested led to an error during execution. |