GET api/v2/NearbyThyngs?userID={userID}&latitude={latitude}&longitude={longitude}
Return a List of thyngs that the given User has previously interacted with
Complete URL https://api.thyngs.net/api/v2/NearbyThyngs?userID={userID}&latitude={latitude}&longitude={longitude}Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| userID |
ID value of the current User |
string |
None. |
| latitude |
Latitude value of User's current location |
string |
None. |
| longitude |
Longitude value of User's current location |
string |
None. |
Body Parameters
None.
Response Information
Resource Description
List of Interactive Thyngs, in Order of Most Recently Interacted with
Collection of NearThyngsModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ThyngLatitude |
Latitude value of this Thyng |
decimal number |
None. |
| ThyngLongitude |
Longitude value of this Thyng |
decimal number |
None. |
| Code |
Unique ID for a Thyng |
string |
None. |
| ThumbImg |
URL of the image which represents this Thyng for use in Thumbnails |
string |
None. |
| CompanyName |
Name of Company that this Thyng belongs to |
string |
None. |
| ThyngName |
Name of this Interacted Thyng |
string |
None. |
| IconColour |
Hex Code value to represent the colour of the peg to be shown on the map |
string |
None. |
| IconSymbol |
Font Awesome Icon, found on http://fontawesome.io/, used to represent the Image to be shown on the peg |
string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ThyngLatitude": 1.0,
"ThyngLongitude": 2.0,
"Code": "sample string 3",
"ThumbImg": "sample string 4",
"CompanyName": "sample string 5",
"ThyngName": "sample string 6",
"IconColour": "sample string 7",
"IconSymbol": "sample string 8"
},
{
"ThyngLatitude": 1.0,
"ThyngLongitude": 2.0,
"Code": "sample string 3",
"ThumbImg": "sample string 4",
"CompanyName": "sample string 5",
"ThyngName": "sample string 6",
"IconColour": "sample string 7",
"IconSymbol": "sample string 8"
}
]
application/xml, text/xml
Sample:
<ArrayOfNearThyngsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyThyngs.Models">
<NearThyngsModel>
<Code>sample string 3</Code>
<CompanyName>sample string 5</CompanyName>
<IconColour>sample string 7</IconColour>
<IconSymbol>sample string 8</IconSymbol>
<ThumbImg>sample string 4</ThumbImg>
<ThyngLatitude>1</ThyngLatitude>
<ThyngLongitude>2</ThyngLongitude>
<ThyngName>sample string 6</ThyngName>
</NearThyngsModel>
<NearThyngsModel>
<Code>sample string 3</Code>
<CompanyName>sample string 5</CompanyName>
<IconColour>sample string 7</IconColour>
<IconSymbol>sample string 8</IconSymbol>
<ThumbImg>sample string 4</ThumbImg>
<ThyngLatitude>1</ThyngLatitude>
<ThyngLongitude>2</ThyngLongitude>
<ThyngName>sample string 6</ThyngName>
</NearThyngsModel>
</ArrayOfNearThyngsModel>