If you have the location name and address for a POI, use lookup: location_name & address to retrieve the geospatial coordinates for that place.
query {
lookup(
query: {
location_name: "Pier 39"
street_address: "39 Pier 39"
city: "San Francisco"
region: "CA"
iso_country_code: "US"
}
) {
placekey
safegraph_core {
location_name
street_address
city
region
iso_country_code
postal_code
latitude
longitude
}
}
}
{
"data": {
"lookup": {
"placekey": "zzy-22b@5vg-7f8-bc5",
"safegraph_core": {
"location_name": "Pier 39",
"street_address": "39 Pier 39",
"city": "San Francisco",
"region": "CA",
"iso_country_code": "US",
"postal_code": "94133",
"latitude": 37.808961,
"longitude": -122.409856
}
}
},
"extensions": {
"row_count": 1,
"version_date": "1635494405__2021_10"
}
}