GET eco/sites?distanceInKm={distanceInKm}&latitude={latitude}&longitude={longitude}&cityId={cityId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
distanceInKm

decimal number

Required

latitude

decimal number

None.

longitude

decimal number

None.

cityId

integer

None.

Body Parameters

None.

Response Information

Resource Description

Collection of SiteQueryGET
NameDescriptionTypeAdditional information
Description

string

None.

Id

integer

None.

City

CityGET

None.

Name

string

None.

MapUrl

string

None.

DistanceFromLocation

decimal number

None.

Image

string

None.

Org

SiteOrg

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "description": "sample string 1",
    "id": 2,
    "city": {
      "id": 1,
      "name": "sample string 2",
      "description": "sample string 3",
      "latitude": 4.1,
      "longitude": 5.1,
      "status": {
        "id": 1,
        "name": "sample string 2"
      },
      "modified": "2024-07-27T08:30:57.3600487+02:00",
      "modifiedBy": {
        "id": 1,
        "username": "sample string 2"
      }
    },
    "name": "sample string 3",
    "mapUrl": "sample string 4",
    "distanceFromLocation": 1.1,
    "image": "sample string 5",
    "org": null
  },
  {
    "description": "sample string 1",
    "id": 2,
    "city": {
      "id": 1,
      "name": "sample string 2",
      "description": "sample string 3",
      "latitude": 4.1,
      "longitude": 5.1,
      "status": {
        "id": 1,
        "name": "sample string 2"
      },
      "modified": "2024-07-27T08:30:57.3600487+02:00",
      "modifiedBy": {
        "id": 1,
        "username": "sample string 2"
      }
    },
    "name": "sample string 3",
    "mapUrl": "sample string 4",
    "distanceFromLocation": 1.1,
    "image": "sample string 5",
    "org": null
  }
]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'myREST.Models.Ecotourism.SiteOrg' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'myREST.Models.Ecotourism.SiteOrg' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.