Geometry

Geometry corresponds to the SafeGraph Geometry dataset. It represents POI footprints with spatial hierarchy metadata depicting when child polygons are contained by parents or when two tenants share the same polygon. Available for 8MM POI (Geometry metadata not provided for closed POIs).

Sample Query containing all fields:

query {
  lookup(placekey: "225-222@5vg-7gs-t9z") {
    safegraph_geometry {
      placekey
      latitude
      longitude
      street_address
      city
      region
      postal_code
      iso_country_code
      parent_placekey
      location_name
      brands {
        brand_id
        brand_name
      }
      polygon_wkt
      polygon_class
      includes_parking_lot
      is_synthetic
      enclosed
    }
  }
}
{
  "data": {
    "lookup": {
      "safegraph_geometry": {
        "placekey": "225-222@5vg-7gs-t9z",
        "latitude": 37.77987,
        "longitude": -122.431733,
        "street_address": "1100 Fillmore St",
        "city": "San Francisco",
        "region": "CA",
        "postal_code": "94115",
        "iso_country_code": "US",
        "parent_placekey": null,
        "location_name": "McDonald's",
        "brands": [
          {
            "brand_id": "SG_BRAND_5179b21fc1d50950b99b4eecaa48c614",
            "brand_name": "mcdonalds restaurants"
          }
        ],
        "polygon_wkt": "POLYGON ((-122.43184246122837 37.77994975674784, -122.43163928389549 37.77997625594376, -122.43158027529716 37.77979924113476, -122.43170164525509 37.77978228160984, -122.43169493973255 37.779754192388125, -122.43175059556961 37.779744652650045, -122.43176065385342 37.779767442022354, -122.43180222809315 37.779761612183584, -122.43184246122837 37.77994975674784))",
        "polygon_class": "OWNED_POLYGON",
        "includes_parking_lot": null,
        "is_synthetic": false,
        "enclosed": false
      }
    }
  },
  "extensions": {
    "row_count": 1,
    "version_date": "1635494405__2021_10"
  }
}