Locations (p:locations)

http://profiles.goabout.com/locations

Locations is a list of Location (p:location) that match certain criteria. Locations (p:locations) are usually obtained by using one of Geocoder (r:geocoder), Reverse geocoder (r:gedeocoder), Geodecoder Bounding Box (r:geodecoder-bbox) or Geodecoder Bounding Circle (r:geodecoder-bcircle).

Example

{
  "locationHrefs" : [ "https://api.goabout.com/location/address/ab43df" ],
  "center" : {
    "latitude" : 51.930272,
    "longitude" : 6.5884175
  },
  "locations" : [ {
    "href" : "http://local.goabout.com:8080/api/location/address/ab43df",
    "distance" : 0.013495412069011954
  } ],
  "_links" : {
    "self" : {
      "href" : "https://api.goabout.com/geocoder/encode?query=Amsterdam"
    }
  },
  "_embedded" : {
    "http://rels.goabout.com/location" : [ {
      "type" : "address",
      "label" : "Keizersgracht 2, Amsterdam",
      "coordinates" : {
        "latitude" : 1.1,
        "longitude" : 1.1
      },
      "street" : "Keizersgracht",
      "housenumber" : "2",
      "postalCode" : "1066 BE",
      "city" : "Amsterdam",
      "_links" : {
        "self" : {
          "href" : "https://api.goabout.com/location/address/ab43df"
        }
      }
    } ]
  }
}

Reference

Properties

locationHrefs:A list of all hrefs of listed locations
locations:[OPTIONAL] A list of locations-with-distances, denoting the location and its distance to center.
center:Coordinate [OPTIONAL] The center coordinate from where the distances are calculated.

locations-with-distances:

href::type`URI` The href to the actual location.
distance:Number The distance to center.

Embedded