PHPackages                             otherjohn/google-location-autofill - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. otherjohn/google-location-autofill

ActiveStatamic-addon

otherjohn/google-location-autofill
==================================

Google Location Fieldtype

1.0.0(6y ago)046MITVue

Since Jan 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/otherjohn/google-location-autofill)[ Packagist](https://packagist.org/packages/otherjohn/google-location-autofill)[ RSS](/packages/otherjohn-google-location-autofill/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Google Location Autofill
========================

[](#google-location-autofill)

[![Statamic 3.0+](https://camo.githubusercontent.com/93c61a311851e398f5663226aca5d307d91ef898067c6b294110a785d6c2e735/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d332e302b2d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)](https://camo.githubusercontent.com/93c61a311851e398f5663226aca5d307d91ef898067c6b294110a785d6c2e735/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d332e302b2d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)[![Total Downloads](https://camo.githubusercontent.com/899bfd6ee9fded3a9d35b8019d4cea15d957d25a91e0093c84a2062ca74c661b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f746865726a6f686e2f676f6f676c652d6c6f636174696f6e2d6175746f66696c6c2e737667)](https://packagist.org/packages/otherjohn/google-location-autofill) [![Downloads Month](https://camo.githubusercontent.com/cb859d6ca578d1647cd131c6d3f9120621b5cefe310fb3da48a50ee8581a535c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6f746865726a6f686e2f676f6f676c652d6c6f636174696f6e2d6175746f66696c6c2e737667)](https://packagist.org/otherjohn/google-location-autofill) [![PayPal donation](https://camo.githubusercontent.com/b48a7f9ca978349b83c641e4901221d7e84374bcb3300a43f739835cf930e802/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617970616c2d646f6e6174652d626c75652e737667)](https://paypal.me/otherjohn)

Google Location Autofill is a [Statamic 3](https://statamic.com/) addon that allows you to pull Google places locations via autotype field and save the location information.

[![Google autocomplete location](https://camo.githubusercontent.com/259b89ebc409ea0a189b4d157b7df9c644969da9c5625fa8662f1df2f592e5d9/68747470733a2f2f646576656c6f706572732e676f6f676c652e636f6d2f6d6170732f646f63756d656e746174696f6e2f6a6176617363726970742f696d616765732f706c616365732d6175746f636f6d706c6574652d737567676573742e706e67)](https://camo.githubusercontent.com/259b89ebc409ea0a189b4d157b7df9c644969da9c5625fa8662f1df2f592e5d9/68747470733a2f2f646576656c6f706572732e676f6f676c652e636f6d2f6d6170732f646f63756d656e746174696f6e2f6a6176617363726970742f696d616765732f706c616365732d6175746f636f6d706c6574652d737567676573742e706e67)

- [Installation](#installation)
- [Data](#data)
- [Reporting issues](#reporting-issues)
- [Recognition](#recognition)

Installation
------------

[](#installation)

This Fieldtype works with **Statamic 3** only!

#### Step 1.

[](#step-1)

1. Run the following command in your v3 project root:

```
composer require otherjohn/google-location-autofill

```

#### Step 2.

[](#step-2)

Publish addon assets from vendor package

```
php artisan vendor:publish --provider=otherjohn\google-location-autofill\ServiceProvider --force

```

You should now have the field show up in your field list.

Does the Fieldtype does not show up? Rebuild your addon package manifest and clear your cache

```
php please addons:discover
php please cache:clear

```

Data
----

[](#data)

Since Google has additional charges for data that is pulled by *default*, the ability to select and choose what you want pulled from Google has been added to the addon.

The following data is saved with this fieldtype by default. You can change this in the fieldtype settings when you add the field to your blueprint. A list of all fields available is in the [PlaceResults docs](https://developers.google.com/maps/documentation/javascript/reference/places-service#PlaceResult).

```
  address_components
  formatted_address
  adr_address
  vicinity
  place_id
  latitude
  longitude
  google_url

```

> `address_components` will output the following: ` street_number,route,locality,administrative_area_level_2,administrative_area_level_1,country,postal_code`. If you remove `address_components` you will loose these fields.

> `geometry` outputs `latitude,longitude`. If you remove `geometry` you will loose these fields.

Reporting issues
----------------

[](#reporting-issues)

This is my first ever community code share. I will try to fix issues, but I can't promise anything. So if you have an issue and I don't get to it just remember...

[![It's Free Software](itsfree.gif)](itsfree.gif)

Recognition
-----------

[](#recognition)

Initial code taken from [olefirenko/vue-google-autocomplete](https://github.com/olefirenko/vue-google-autocomplete) and modified to return more data and work with Statamic. &amp; ["Added the option to specify which fields to fetch in the PlaceResult object" Pull Request](https://github.com/olefirenko/vue-google-autocomplete/pull/103)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2299d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/673236?v=4)[John Hamman](/maintainers/otherjohn)[@otherjohn](https://github.com/otherjohn)

---

Top Contributors

[![otherjohn](https://avatars.githubusercontent.com/u/673236?v=4)](https://github.com/otherjohn "otherjohn (18 commits)")

---

Tags

statamicstatamic-v3vue-componentsstatamicfieldtype

### Embed Badge

![Health badge](/badges/otherjohn-google-location-autofill/health.svg)

```
[![Health](https://phpackages.com/badges/otherjohn-google-location-autofill/health.svg)](https://phpackages.com/packages/otherjohn-google-location-autofill)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[statamic/statamic

Statamic

824170.4k](/packages/statamic-statamic)[aryehraber/statamic-captcha

Protect your Statamic forms using a Captcha service

16194.4k](/packages/aryehraber-statamic-captcha)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

2381.5k10](/packages/marcorieser-statamic-livewire)[mitydigital/sitemapamic

An XML sitemap generator for Statamic that includes all collections and related taxonomy pages.

1485.2k](/packages/mitydigital-sitemapamic)[statamic-rad-pack/meilisearch

meilisearch search driver for Statamic

1661.7k](/packages/statamic-rad-pack-meilisearch)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
