GoogleMaps_Address
type GoogleMaps_Address {
id: Int
elementId: Int
fieldId: Int
formatted: String
raw: GoogleMaps_Raw
name: String
street1: String
street2: String
city: String
state: String
zip: String
neighborhood: String
county: String
country: String
countryCode: String
placeId: String
distance: Float
zoom: Int
lat: Float
lng: Float
}
For queries only
To edit an Address field via a mutation, see the GoogleMaps_AddressInput
input.
How to write a query
For complete instructions on using the GoogleMaps_Address
type in a query, read the docs for Getting an Address with GraphQL.
# Arguments
# id
Int - ID of the Address.
# elementId
Int - Element ID of the element containing the Address.
# fieldId
Int - Field ID of the Address field.
# formatted
String - A nicely-formatted single-line interpretation of the address, provided by Google during the initial geocoding.
# raw
GoogleMaps_Raw - The original data used to create this Address Model. Contains the full JSON response from the original Google API call.
# name
String - The location's official name. Commonly used for landmarks and business names.
# street1
String - The first line of the street address. Usually contains the street name & number of the location.
# street2
String - The second line of the street address. Usually contains the apartment, unit, or suite number.
# city
String - The city. (aka: town)
# state
String - The state. (aka: province)
# zip
String - The zip code. (aka: postal code)
# neighborhood
String - The neighborhood.
# county
String - The local county. (aka: district)
# country
String - The country. (aka: nation)
# countryCode
String - The country code.
# placeId
String - The official place_id
as specified by the Google API.
# distance
Float - The distance between the Address and a proximity search target. If not conducting a proximity search, value will be null
.
# zoom
Int - Zoom level of the map as shown in the control panel.
# lat
Float - Latitude of location.
# lng
Float - Longitude of location.