GET api/facilities/pools/{lat}/{lng}/{rowcount}
Gets nearest pools by latitude/longitude
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
lat | string |
Required |
|
lng | string |
Required |
|
rowcount | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of FacilityModelName | Description | Type | Additional information |
---|---|---|---|
name | string |
None. |
|
address | string |
None. |
|
city | string |
None. |
|
distance | decimal number |
None. |
|
lat | decimal number |
None. |
|
lng | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
[ { "name": "sample string 1", "address": "sample string 2", "city": "sample string 3", "distance": 4.1, "lat": 5.1, "lng": 6.1 }, { "name": "sample string 1", "address": "sample string 2", "city": "sample string 3", "distance": 4.1, "lat": 5.1, "lng": 6.1 } ]
application/xml, text/xml
Sample:
<ArrayOfFacilityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/api.Models"> <FacilityModel> <address>sample string 2</address> <city>sample string 3</city> <distance>4.1</distance> <lat>5.1</lat> <lng>6.1</lng> <name>sample string 1</name> </FacilityModel> <FacilityModel> <address>sample string 2</address> <city>sample string 3</city> <distance>4.1</distance> <lat>5.1</lat> <lng>6.1</lng> <name>sample string 1</name> </FacilityModel> </ArrayOfFacilityModel>