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 586
Requires Statamic 2

Aryeh Raber

More by Aryeh Raber

Similar Addons

See All
Manage URL redirects intuitively, discover and fix 404's automagically, improve your SEO dramatically $19

Redirects

by Gridonic in Enhancement, Tool, Control Panel
Manage URL redirects intuitively, discover and fix 404's automagically, improve your SEO dramatically
A Statamic fieldtype that gives you a disabled text input

Disabled

by Wout Mager in Fieldtype
A Statamic fieldtype that gives you a disabled text input
Extends the static cache with additional features such as disabling caching for authenticated users.

Super Static Cache

by Stefan Wanzenried in Enhancement, Utility
Extends the static cache with additional features such as disabling caching for authenticated users.