PHPackages                             fuzzyma/contao-addresspicker - 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. fuzzyma/contao-addresspicker

ActiveContao-module

fuzzyma/contao-addresspicker
============================

Frontend Text Field with Bootstrap Datepicker for Contao Open Source CMS

0.1.1(9y ago)0110LGPL-3.0+PHPPHP &gt;=5.3.2

Since Jan 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Fuzzyma/contao-addresspicker)[ Packagist](https://packagist.org/packages/fuzzyma/contao-addresspicker)[ RSS](/packages/fuzzyma-contao-addresspicker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

contao-addresspicker
====================

[](#contao-addresspicker)

Contao Wrapper for google places autocomplete.

Comes with a widget for Backend and Frontend.

For Backend use specify `addresspicker` in the dca:

```
$GLOBALS['TL_DCA']['tl_form_field']['fields']['componentRestrictions'] = array
(
    'label'     => &$GLOBALS['TL_LANG']['tl_form_field']['componentRestrictions'],
    'exclude'   => true,
    'inputType' => 'addresspicker',
    'eval'      => array('category' => '(regions)', 'tl_class'=>'w50'}'),
    'sql'       => "varchar(255) NOT NULL default ''"
);
```

You can pass the following options to eval:

- category: one of `geocode, address, establishment, (regions), (cities)`
- componentRestrictions: a country code to restrict the picker to that country
- bounds: latitude and longitude for a rectangel the picker is restricted to: 1.223,12.421;4.23,1.213
- callback: javascipt function name or function declaration which is called when a place was selected (`somefunc` or `function(picker){ console.log(picker.getPlace()) }`
- fields you want to get filled, when a place is selected. Available fields are:
    - use\_route
    - use\_street\_number
    - use\_locality
    - use\_administrative\_area\_level\_1
    - use\_country
    - use\_postal\_code
    - use\_lat\_long
- a type to every use-field to specify `long_name` or `short_name`
    - use\_route\_type
    - use\_street\_number\_type
    - use\_locality\_type
    - use\_administrative\_area\_level\_1\_type
    - use\_country\_type
    - use\_postal\_code\_type

Make sure you have corresponding fields in your dca. The fieldname has to be `[name of the adresspicker]_[name of the field without use]`. e.g. `componentRestrictions_locality`

```
$GLOBALS['TL_DCA']['tl_form_field']['fields']['componentRestrictions'] = array
(
    'label'     => &$GLOBALS['TL_LANG']['tl_form_field']['componentRestrictions'],
    'exclude'   => true,
    'inputType' => 'addresspicker',
    'eval'      => array(
        'callback'          => 'function(a){console.log(a.getPlace())}',
        'category'          => '(regions)',
        'tl_class'          => 'w50',
        'use_locality'      => true,
        'use_locality_type' => 'long_name'
    ),
    'sql'                   => "varchar(255) NOT NULL default ''"
);

// this field is filled automatically when a place is selected
$GLOBALS['TL_DCA']['tl_form_field']['fields']['componentRestrictions_locality`'] = array(
    inputType => 'text'
)
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Every ~190 days

Total

2

Last Release

3566d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/895dc6b7ec7660675ec9c13904cc5bac6ccc471aaa7950725349800fbe43bdd2?d=identicon)[Fuzzyma](/maintainers/Fuzzyma)

---

Top Contributors

[![Fuzzyma](https://avatars.githubusercontent.com/u/3540542?v=4)](https://github.com/Fuzzyma "Fuzzyma (11 commits)")

---

Tags

contaogoogle-places-autocompleteAddress FieldAddresspicker

### Embed Badge

![Health badge](/badges/fuzzyma-contao-addresspicker/health.svg)

```
[![Health](https://phpackages.com/badges/fuzzyma-contao-addresspicker/health.svg)](https://phpackages.com/packages/fuzzyma-contao-addresspicker)
```

PHPackages © 2026

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