Description

Find a location using Google Maps autocomplete.

This fieldtype will suggest addresses as you type. Granted the address is successfully found by Google, it will save the full address name, latitude and longitude to the page/entry.

location

Usage

Setup:

Firstly, copy the entire Location folder into site/addons/.

Enable Google Maps JavaScript API and generate an API Key: http://console.developers.google.com.

Finally, add it to Location's settings (CP > Configure > Addons > Location).

Usage:

fields:
  address:
    type: location
    display: Store Address

Output:

address:
  name: Newport Beach, CA, USA
  latitude: 33.6189101
  longitude: '-117.9289469'

A big thank you to Erin Dalzell who actually did most of the work!


Important Links
Details
Released March 19, 2018
Downloads 372
Requires Statamic 2

Aryeh Raber

More by Aryeh Raber

Similar Addons

See All
Subscribes a registering user or a contact form to a Mailchimp list

Mailchimp

by Erin Dalzell in Forms, Integration
Subscribes a registering user or a contact form to a Mailchimp list
Allows access to content as JSON directly using URL endpoints or via a simple tag.

Fetch

by Aryeh Raber in API, Integration
Allows access to content as JSON directly using URL endpoints or via a simple tag.