Skip to content

Location Scores

POST location/scores

Returns scores for the specified location.

Request#

Example Request 1#

curl -X POST 'https://api.pricehubble.com/api/v1/location/scores?access_token=74126eab0a9048d993bda4b1b55ae074' \
  -H 'content-type: application/json' \
  -d '{
  "location": {
    "coordinates": {
      "latitude": 47.36925,
      "longitude": 8.531118
    }
  },
  "countryCode": "CH"
}'

Example Request 2#

curl -X POST 'https://api.pricehubble.com/api/v1/location/scores?access_token=74126eab0a9048d993bda4b1b55ae074' \
  -H 'content-type: application/json' \
  -d '{
  "location": {
    "address": {
      "street": "Gerechtigkeitsgasse",
      "houseNumber": "19",
      "postCode": "8001",
      "city": "Zurich"
    }
  },
  "countryCode": "CH"
}'
Field Description Type Remarks
location Location for which information should be retrieved Location
countryCode ISO country code string CH, DE and FR are currently supported

Response#

{
    "catering": 0.98,
    "family": 0.98,
    "health": 1,
    "leisure": 0.92,
    "location": 0.464,
    "noise": 0.546,
    "nuisance": 0.951,
    "shopping": 0.98,
    "view": 0.575
}
Field Description Type Remarks
family Family score Score
location Overall location score Score Only available in CH
noise Noise score Score Only available in CH
nuisance Nuisance score Score Only available in CH
shopping Shopping score Score
view View score Score Only available in CH
catering Catering score Score
health Health score Score
leisure Leisure score Score