PHPackages                             jfeid/nova-google-maps - 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. jfeid/nova-google-maps

ActiveLibrary

jfeid/nova-google-maps
======================

A Laravel Nova field using Google Maps to provide latitude/longitude data.

v1.1(6y ago)67.8k↓37.5%2MITPHPPHP &gt;=7.1.0

Since Dec 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/jfeid/nova-google-maps)[ Packagist](https://packagist.org/packages/jfeid/nova-google-maps)[ RSS](/packages/jfeid-nova-google-maps/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Nova Google Map Field
---------------------

[](#nova-google-map-field)

A [Laravel Nova](https://nova.laravel.com) field that uses Google Maps to update latitude/longitude model fields.

Requirements
------------

[](#requirements)

Package supports Nova 2.x (Laravel 5.8.x), Vue 2.6.x

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

[](#installation)

Install the package in to a Laravel app that uses Nova via composer:

```
composer require jfeid/nova-google-maps
```

Publish the package configuration to your Laravel config directory:

```
php artisan vendor:publish --provider="Jfeid\NovaGoogleMaps\FieldServiceProvider" --tag="config"
```

You need to type your Google Map API key in the `.env` file as follows:

```
GMAPS_API_KEY=YOUR_API_KEY_HERE
```

Optionally, you can adjust the following configuration options in the `.env` file:

```
# Default latitude value when empty
GMAPS_DEFAULT_LATITUDE=
# Default longitude value when empty
GMAPS_DEFAULT_LONGITUDE=
# Default map zoom value
GMAPS_DEFAULT_ZOOM=9
```

Usage
-----

[](#usage)

Add the following to a Nova resource:

```
NovaGoogleMaps::make('Location')->setValue($this->location_lat, $this->location_lng)
```

The field requires to initialize its value using the `setValue` method by passing your model's lat/lng fields as parameters.

Also the field requires to know your names of the model's lat/lng fields in order to use them in POST requests. By default, the field will use the base attribute ('location' in this example) suffixed with `_lat` and `_lng`. For example:

```
// POST data
...
location_lat=40.2711861
location_lng=22.4755078
...
```

If the default naming does not work for you, you can explicitly set the attribute names for lat/lng as follows:

```
NovaGoogleMaps::make('Location')->setAttributes('my_latitude', 'my_longitude')
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~95 days

Total

4

Last Release

2435d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d2110b8f5a739e3564b55101dd11c6e7e6fc27421274877a59d940b798e9e9a?d=identicon)[jfeid](/maintainers/jfeid)

---

Top Contributors

[![jfeid](https://avatars.githubusercontent.com/u/1190470?v=4)](https://github.com/jfeid "jfeid (21 commits)")[![paul-muckypuddle](https://avatars.githubusercontent.com/u/9194004?v=4)](https://github.com/paul-muckypuddle "paul-muckypuddle (2 commits)")[![edwinheij](https://avatars.githubusercontent.com/u/1799101?v=4)](https://github.com/edwinheij "edwinheij (1 commits)")

---

Tags

google-mapslaravelnovalaravelfieldlatitudelongitudegoogle mapsnova

### Embed Badge

![Health badge](/badges/jfeid-nova-google-maps/health.svg)

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

###  Alternatives

[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[malhal/laravel-geographical

Easily add longitude and latitude columns to your records and use inherited functionality for calculating distances

283375.6k](/packages/malhal-laravel-geographical)[timothyasp/nova-color-field

A Laravel Nova Color Picker field.

781.6M5](/packages/timothyasp-nova-color-field)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[stepanenko3/nova-json

Nova json field to spread a json column throughout multiple fields.

42249.7k](/packages/stepanenko3-nova-json)[optimistdigital/nova-notes-field

This Laravel Nova package adds a notes field to Nova's arsenal of fields.

52139.5k](/packages/optimistdigital-nova-notes-field)

PHPackages © 2026

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