GET Api/TimeRegistration/Locations?latitude={latitude}&longitude={longitude}

Get all locations that are near the given coordinates If no range is given the search range is within 100 meters

Request Information

URI Parameters

NameDescriptionTypeAdditional information
latitude

decimal number

Required

longitude

decimal number

Required

Body Parameters

None.

Response Information

Resource Description

Collection of LocationDuties
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Adres

string

None.

Coordinates

Coordinates

None.

duties

Collection of Duty

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2",
    "Adres": "sample string 3",
    "Coordinates": {
      "Longitude": 1.1,
      "Latitude": 2.1
    },
    "duties": [
      {
        "Id": 1,
        "Name": "sample string 2"
      },
      {
        "Id": 1,
        "Name": "sample string 2"
      }
    ]
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "Adres": "sample string 3",
    "Coordinates": {
      "Longitude": 1.1,
      "Latitude": 2.1
    },
    "duties": [
      {
        "Id": 1,
        "Name": "sample string 2"
      },
      {
        "Id": 1,
        "Name": "sample string 2"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfLocationDuties xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Paralax.Cas.Web.DutyTimeRegistration">
  <LocationDuties>
    <Adres>sample string 3</Adres>
    <Coordinates xmlns:d3p1="http://schemas.datacontract.org/2004/07/Paralax.Cas.Utils">
      <d3p1:Latitude>2.1</d3p1:Latitude>
      <d3p1:Longitude>1.1</d3p1:Longitude>
    </Coordinates>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <duties>
      <Duty>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </Duty>
      <Duty>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </Duty>
    </duties>
  </LocationDuties>
  <LocationDuties>
    <Adres>sample string 3</Adres>
    <Coordinates xmlns:d3p1="http://schemas.datacontract.org/2004/07/Paralax.Cas.Utils">
      <d3p1:Latitude>2.1</d3p1:Latitude>
      <d3p1:Longitude>1.1</d3p1:Longitude>
    </Coordinates>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <duties>
      <Duty>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </Duty>
      <Duty>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </Duty>
    </duties>
  </LocationDuties>
</ArrayOfLocationDuties>