GET api/Restaurant/summary/{lat}/{lng}/{rowcount}
Gets Restaurant 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 RestaurantModelName | Description | Type | Additional information |
---|---|---|---|
name | string |
None. |
|
score | string |
None. |
|
address | string |
None. |
|
city | string |
None. |
|
date | string |
None. |
|
distance | decimal number |
None. |
|
lat | decimal number |
None. |
|
lng | decimal number |
None. |
|
weblink | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "name": "sample string 1", "score": "sample string 2", "address": "sample string 3", "city": "sample string 4", "date": "sample string 5", "distance": 6.1, "lat": 7.1, "lng": 8.1, "weblink": "sample string 9" }, { "name": "sample string 1", "score": "sample string 2", "address": "sample string 3", "city": "sample string 4", "date": "sample string 5", "distance": 6.1, "lat": 7.1, "lng": 8.1, "weblink": "sample string 9" } ]
application/xml, text/xml
Sample:
<ArrayOfRestaurantModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/api.Models"> <RestaurantModel> <address>sample string 3</address> <city>sample string 4</city> <date>sample string 5</date> <distance>6.1</distance> <lat>7.1</lat> <lng>8.1</lng> <name>sample string 1</name> <score>sample string 2</score> <weblink>sample string 9</weblink> </RestaurantModel> <RestaurantModel> <address>sample string 3</address> <city>sample string 4</city> <date>sample string 5</date> <distance>6.1</distance> <lat>7.1</lat> <lng>8.1</lng> <name>sample string 1</name> <score>sample string 2</score> <weblink>sample string 9</weblink> </RestaurantModel> </ArrayOfRestaurantModel>