LocationField is a set of fields that describes a location.
It is used as the value of a user field of type 'location'
When updating a user's location field, fields that are not on the list below are dropped.
All the fields are optional unless specified in the field configuration on mobilize web site.
LocationField Object
Name | Type | Definition |
---|---|---|
place_id | Text | Reference on Google Maps (example) |
lat | Number | latitude coordinates of the location |
lng | Number | longitude coordinates of the location |
formatted_address | Text | a human-readable address for displaying in mobilize.io |
country | Text | indicates the national political entity |
state | Text | indicates a state or other first-order civil entity below the country level |
city | Text | indicates an incorporated city or town political entity |
postal_code | Text | indicates a postal code as used to address postal mail within the country |
street_name | Text | indicates a street name or another named route (such as "US 101") |
street_number | Number | indicates the precise street number |
{
"place_id": "ChIJnySwn4mAhYARnYlWZeajtew",
"lat": 37.7900112,
"lng": -122.4041154,
"formatted_address": "209 Kearny St, San Francisco, CA 94108, USA",
"country": "United States",
"state": "California",
"city": "San Francisco",
"postal_code": "94108",
"street_name": "Kearny Street",
"street_number": "209"
}