GET api/NearByPlace?categoryID={categoryID}
Retrieves Near By Place based on the provided category.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| categoryID |
The ID of the category to filter the Place. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A list of Near by Place matching the provided category ID.
Collection of NearByPlace| Name | Description | Type | Additional information |
|---|---|---|---|
| locationID |
Gets or sets the Location ID. |
integer |
None. |
| categoryID |
Gets or sets the category ID. |
integer |
None. |
| locationName |
Gets or sets the Location name. |
string |
None. |
| imageURL |
Gets or sets the item image URL. |
string |
None. |
| address |
Gets or sets the address. |
string |
None. |
| latitude |
Gets or sets the latitude. |
string |
None. |
| longitude |
Gets or sets the longitude. |
string |
None. |
| description |
Gets or sets the description. |
string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"locationID": 1,
"categoryID": 2,
"locationName": "sample string 3",
"imageURL": "sample string 4",
"address": "sample string 5",
"latitude": "sample string 6",
"longitude": "sample string 7",
"description": "sample string 8"
},
{
"locationID": 1,
"categoryID": 2,
"locationName": "sample string 3",
"imageURL": "sample string 4",
"address": "sample string 5",
"latitude": "sample string 6",
"longitude": "sample string 7",
"description": "sample string 8"
}
]
application/xml, text/xml
Sample:
<ArrayOfNearByPlace xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models">
<NearByPlace>
<address>sample string 5</address>
<categoryID>2</categoryID>
<description>sample string 8</description>
<imageURL>sample string 4</imageURL>
<latitude>sample string 6</latitude>
<locationID>1</locationID>
<locationName>sample string 3</locationName>
<longitude>sample string 7</longitude>
</NearByPlace>
<NearByPlace>
<address>sample string 5</address>
<categoryID>2</categoryID>
<description>sample string 8</description>
<imageURL>sample string 4</imageURL>
<latitude>sample string 6</latitude>
<locationID>1</locationID>
<locationName>sample string 3</locationName>
<longitude>sample string 7</longitude>
</NearByPlace>
</ArrayOfNearByPlace>