Version 1.0.0
This adds a "Geo Address" field type to Craft CMS. From the control panel, it appears as a typical "Address" field, but when you save a form that uses this field, it get Geocode information from Google Maps API and saves the latitude and longitude coordinates for use in a template. That's really all it does.
street
- user entered street valuecity
- user entered city valuestate
- user entered state valuezip
- user entered zip valueformattedAddress
- the formatted address as returned from the Google Maps APIlat
- the latitude GPS coordinates (in the form of47.668425
)lng
- the longitude GPS coordinates (in the form of-117.085289
)
Note if you attach these to, say, an address
field, they'd be accessed off of that variable: {{ address.formattedAddress }}
.