PHPackages                             hypejunction/google\_maps\_autocomplete - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hypejunction/google\_maps\_autocomplete

ActiveElgg-plugin[Utility &amp; Helpers](/categories/utility)

hypejunction/google\_maps\_autocomplete
=======================================

Replaces location input with Google Maps Autocomplete

1.0.0(8y ago)048GPL-2.0JavaScriptPHP &gt;=5.5

Since Aug 29Pushed 8y ago2 watchersCompare

[ Source](https://github.com/hypeJunction/Elgg-google_maps_autocomplete)[ Packagist](https://packagist.org/packages/hypejunction/google_maps_autocomplete)[ Docs](http://hypejunction.com)[ RSS](/packages/hypejunction-google-maps-autocomplete/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Google Maps Autocomplete
========================

[](#google-maps-autocomplete)

[![Elgg 2.3](https://camo.githubusercontent.com/8452daaef3ea7320843e9a5473e44a80e23ec99b34525f2c9bbf8c83ccad0cd6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d322e332d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/8452daaef3ea7320843e9a5473e44a80e23ec99b34525f2c9bbf8c83ccad0cd6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d322e332d6f72616e67652e7376673f7374796c653d666c61742d737175617265)

Features
--------

[](#features)

- Replaces location input with Google Maps Autocomplete

API Key
-------

[](#api-key)

Make sure your Google API key supports:

- Google Maps JavaScript API
- Google Places API Web Service

Notes
-----

[](#notes)

### Autocomplete options

[](#autocomplete-options)

You can pass options to `google.maps.places.Autocomplete` component using `data-` attributes of the input field.

```
echo elgg_view_input('location', [
    'name' => 'city_in_france',
    'data-types' => json_encode(['(cities)']),
    'data-component-restrictions' => json_encode(['country' => 'fr']),
]);
```

You can further filter options for each input using `'options', 'input/location'` JavaScript plugin hook.

### Accessing address parts

[](#accessing-address-parts)

You can access address parts, UTC offset and lat/long of the location in your action:

```
$location = get_input('my_input_name');
$extended = get_input('__location');

$index = array_search($location, $extended['location']);

$street_address = $extended['street_address'][$index];
$postal_code = $extended['postal_code'][$index];
...
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

3227d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5071b1cd852e094b3f564962a625e04c227adc73af30c5b46b243ab8f20154a7?d=identicon)[hypeJunction](/maintainers/hypeJunction)

---

Top Contributors

[![hypeJunction](https://avatars.githubusercontent.com/u/1202761?v=4)](https://github.com/hypeJunction "hypeJunction (2 commits)")

---

Tags

pluginautocompleteelggmapslocation

### Embed Badge

![Health badge](/badges/hypejunction-google-maps-autocomplete/health.svg)

```
[![Health](https://phpackages.com/badges/hypejunction-google-maps-autocomplete/health.svg)](https://phpackages.com/packages/hypejunction-google-maps-autocomplete)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[mediawiki/maps

Adds various mapping features to MediaWiki

78149.7k3](/packages/mediawiki-maps)

PHPackages © 2026

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