PHPackages                             trinityrank/google-map-with-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. trinityrank/google-map-with-autocomplete

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

trinityrank/google-map-with-autocomplete
========================================

Nova Google Map With Autocomplete Field Package.

v1.0.0(3y ago)426.5k↓50%10[3 issues](https://github.com/trinity-rank/google-map-with-autocomplete/issues)[2 PRs](https://github.com/trinity-rank/google-map-with-autocomplete/pulls)MITVuePHP ^7.4|^8.0

Since Jul 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/trinity-rank/google-map-with-autocomplete)[ Packagist](https://packagist.org/packages/trinityrank/google-map-with-autocomplete)[ RSS](/packages/trinityrank-google-map-with-autocomplete/feed)WikiDiscussions main Synced 1mo ago

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

Nova Google Map With Autocomplete Field Package
===============================================

[](#nova-google-map-with-autocomplete-field-package)

This field allows you to work with Google Places API to autocomplete and Google Map on user input and get the full real address with all the metadata (like latitude and longitude).

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

[](#installation)

You can install the package in to a Laravel app that uses Nova via composer:

```
composer require trinityrank/google-map-with-autocomplete
```

Now publish config and localization files:

```
php artisan vendor:publish --provider="Trinityrank\GoogleMapWithAutocomplete\FieldServiceProvider"
```

Create an app and enable Places API and create credentials to get your API key

Add the below to your `.env` file

```
GMAPS_API_KEY=############################
```

Usage
-----

[](#usage)

Add the use declaration to your resource and use the fields:

```
use Trinityrank\GoogleMapWithAutocomplete\TRMap;
use Trinityrank\GoogleMapWithAutocomplete\TRCountry;
use Trinityrank\GoogleMapWithAutocomplete\TRState;
use Trinityrank\GoogleMapWithAutocomplete\TRCity;
use Trinityrank\GoogleMapWithAutocomplete\TRZipCode;
use Trinityrank\GoogleMapWithAutocomplete\TRAddress;

TRMap::make('Map'), // Google Map with address picker
TRCountry::make('Country'), // Country field
TRState::make('State'), // State field
TRCity::make('City'), // City field
TRZipCode::make('Zip Code'), // Zip Code Filed
TRAddress::make('Address'), // Autocomplete address field
```

Add the use declaration to your resource and use the panel with all fileds:

```
use Trinityrank\GoogleMapWithAutocomplete\TRLocation;

TRLocation::make('Location'), // All fileds in panel with required rule
```

[![Image of character counter](docs/screenshot-fields.png)](docs/screenshot-fields.png)

### Customize Fields

[](#customize-fields)

Add custom latitude, longitude and zoom values for starting point

```
TRMap::make('Map')
    ->latitude('latitude')
    ->longitude('longitude')
    ->zoom('zoom'),
```

Hide latitude and longitude field

```
TRMap::make('Map')
    ->hideLatitude()
    ->hideLongitude(),
```

You can add any nova basic methods to fileds (Showing / Hiding, Validation ... ).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance5

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

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

1392d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0529d66a2bad86fe77ead9c9cd33d611daaa00dcc73510603b17bab69b8ea196?d=identicon)[trinity-rank](/maintainers/trinity-rank)

---

Top Contributors

[![trinity-rank](https://avatars.githubusercontent.com/u/87767187?v=4)](https://github.com/trinity-rank "trinity-rank (1 commits)")

---

Tags

laravelgoogle mapnova-4

### Embed Badge

![Health badge](/badges/trinityrank-google-map-with-autocomplete/health.svg)

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

###  Alternatives

[optimistdigital/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2872.1M6](/packages/optimistdigital-nova-sortable)[outl1ne/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2861.8M9](/packages/outl1ne-nova-sortable)[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[vyuldashev/nova-money-field

A Laravel Nova field for Money.

73784.4k1](/packages/vyuldashev-nova-money-field)[alexwenzel/nova-dependency-container

A Laravel Nova 4 form container for grouping fields that depend on other field values.

461.0M2](/packages/alexwenzel-nova-dependency-container)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)

PHPackages © 2026

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