Location

Free!
Download
Location
Description

A Location Autocomplete Field for Statamic V3

Why?

The inspiration for publishing this addon came from writing the following blog post.

https://dev.to/mattrothenberg/build-a-location-autocomplete-field-for-statamic-v3-49cp

Co-locating a custom fieldtype within your Statamic app is one thing... Building an addon so that other folks can use it, too, is another. This is the fruit of my labor!

Installation

(shamelessly cribbed from https://github.com/riasvdv/statamic-color-swatches)

Clone the Github repo somewhere, then add it to your composer.json's repositories array. (This is only necessary until the package is released.) Adjust the url to point to cloned directory.

"repositories": [
    {
        "type": "path",
        "url": "addons/mattrothenberg/location"
    }
]

Require it using Composer.

composer require mattrothenberg/location

Publish the assets

php artisan vendor:publish --provider="Mattrothenberg\Location\ServiceProvider"

Add two environment variables, since this library uses Places.js under the hood for location autocompletion.

PLACES_APP_ID=""
PLACES_API_KEY=""

Important Links
Details
Released December 6, 2019
Updated 7 months ago
Version 1.0
Downloads 152
Requires Statamic 3

Matt Rothenberg

I create Statamic add-ons.

More by Matt Rothenberg

Similar Addons

See All
Prevent spam in your form submissions $39

Akismet

by Erin Dalzell in Commerce
Prevent spam in your form submissions
Would you like to use less time to explain how your specific Statamic site has been build? This is your Addon then! $19

How To Addon

by Jonas Siewertsen in API, Commerce, Integration
Would you like to use less time to explain how your specific Statamic site has been build? This is your Addon then!