Skip to main content
Query

geocodeLocationAddress

Looks up the map position of a location's address. Nothing is saved: set the result as the location's coordinates with updateLocation. Fails when the address has no street, city or postal code. Returns null when no match was found. Requires access to the space.

Arguments

  • Address to look up, such as one being edited. Defaults to the location's saved address.

  • idID!

    ID of the location.

  • spaceIdID!

    ID of the space.

Returns

LocationGeocodeResult

Example

query GeocodeLocationAddress($address: AddressInput, $id: ID!, $spaceId: ID!) {
  geocodeLocationAddress(address: $address, id: $id, spaceId: $spaceId) {
    label
  }
}