GET api/location?search={search}&lat={lat}&lng={lng}&radius={radius}
Getlocations the specified search.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| search |
The search. |
string |
Default value is |
| lat |
The lat. |
decimal number |
Default value is 0 |
| lng |
The LNG. |
decimal number |
Default value is 0 |
| radius |
The radius. |
integer |
Default value is 0 |
Body Parameters
None.
Response Information
Resource Description
lstLocation| Name | Description | Type | Additional information |
|---|---|---|---|
| result |
Gets or sets the result. |
Collection of RBLocationViewModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"result": [
{
"locationID": 1,
"isRegional": "sample string 2",
"regionalID": 1,
"locationName": "sample string 3",
"location_address_1": "sample string 4",
"location_address_2": "sample string 5",
"city": "sample string 6",
"stateCode": "sample string 7",
"state": "sample string 8",
"zipCode": "sample string 9",
"countryCode": "sample string 10",
"country": "sample string 11",
"lat": 1.1,
"lng": 1.1,
"distance": 12.1
},
{
"locationID": 1,
"isRegional": "sample string 2",
"regionalID": 1,
"locationName": "sample string 3",
"location_address_1": "sample string 4",
"location_address_2": "sample string 5",
"city": "sample string 6",
"stateCode": "sample string 7",
"state": "sample string 8",
"zipCode": "sample string 9",
"countryCode": "sample string 10",
"country": "sample string 11",
"lat": 1.1,
"lng": 1.1,
"distance": 12.1
}
]
}
text/html
Sample:
{"result":[{"locationID":1,"isRegional":"sample string 2","regionalID":1,"locationName":"sample string 3","location_address_1":"sample string 4","location_address_2":"sample string 5","city":"sample string 6","stateCode":"sample string 7","state":"sample string 8","zipCode":"sample string 9","countryCode":"sample string 10","country":"sample string 11","lat":1.1,"lng":1.1,"distance":12.1},{"locationID":1,"isRegional":"sample string 2","regionalID":1,"locationName":"sample string 3","location_address_1":"sample string 4","location_address_2":"sample string 5","city":"sample string 6","stateCode":"sample string 7","state":"sample string 8","zipCode":"sample string 9","countryCode":"sample string 10","country":"sample string 11","lat":1.1,"lng":1.1,"distance":12.1}]}