Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

JSON Format: Intersection

rsimon edited this page Aug 8, 2011 · 3 revisions

The /intersect API method returns a JSON object with the following fields:

  • srcSet: the 'source set' name, i.e. first set of the intersection
  • destSet: the 'destination set' name, i.e. second set of the intersection
  • commonPlaces: the list of places the two sets have in common (JSON Format)
  • footprint: a polygon representing the [convex hull] (http://en.wikipedia.org/wiki/Convex_hull) of the places' geometries

JSON Example:

{
  "srcSet":"nomisma",
  "destSet":"SPQR",
  "commonPlaces":[{
                     "label":"Agrippias",
                     "uri":"http://pleiades.stoa.org/places/658378",
                     "geometry": {"type":"Point","coordinates":[35.898549,37.256404]}
                 }],
  "footprint": [[34.887973,31.62077],[14.2922,32.636748],[12.484959,32.805896],[12.0,44.0],[12.0,44.5],[12.5,44.5],[35.898549,37.256404],[36.0,34.5],[36.0,34.0],[36.5,34.5],[36.5,34.0],[34.887973,31.62077] ]
}
Clone this wiki locally