GET smartlot/v2/OccupanciesByCoordinate/{APIKey}/{siteCode}/{latitude}/{longitude}

This method returns all the occupancies for the given site filtered by latitude and longitude within a default range specified in sites distance limit. You need to call this URL with a trailing slash

Request Information

Parameters

NameDescriptionAdditional information
siteCode
The code of the site you have access to and whose data you want to retrieve. Available on settings page.

Define this parameter in the request URI.

latitude
Latitude in degree

Define this parameter in the request URI.

longitude
Longitude in degree

Define this parameter in the request URI.

APIKey
The API key provided during registration. Available on settings page.

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "LotCode": "sample string 1",
    "Free": 2,
    "Occupied": 3,
    "IsOffline": true
  },
  {
    "LotCode": "sample string 1",
    "Free": 2,
    "Occupied": 3,
    "IsOffline": true
  },
  {
    "LotCode": "sample string 1",
    "Free": 2,
    "Occupied": 3,
    "IsOffline": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfOccupancy xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartAPI.Entities.V2">
  <Occupancy>
    <Free>2</Free>
    <IsOffline>true</IsOffline>
    <LotCode>sample string 1</LotCode>
    <Occupied>3</Occupied>
  </Occupancy>
  <Occupancy>
    <Free>2</Free>
    <IsOffline>true</IsOffline>
    <LotCode>sample string 1</LotCode>
    <Occupied>3</Occupied>
  </Occupancy>
  <Occupancy>
    <Free>2</Free>
    <IsOffline>true</IsOffline>
    <LotCode>sample string 1</LotCode>
    <Occupied>3</Occupied>
  </Occupancy>
</ArrayOfOccupancy>