PHPackages                             whitecube/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. whitecube/nova-google-maps

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

whitecube/nova-google-maps
==========================

A Laravel Nova field.

v0.0.1(6y ago)15120.1k↑963.6%4[3 issues](https://github.com/whitecube/nova-google-maps/issues)MITVuePHP &gt;=7.1.0

Since May 4Pushed 6y ago2 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laravel Nova Google Maps Field
==============================

[](#laravel-nova-google-maps-field)

A laravel nova field to easily enter an address (uses the Algolia Places API) and show a preview in a Google Map. The result is stored in a json column and contains all the data sent by Algolia.

[![Preview of the nova-google-maps field](https://github.com/whitecube/nova-google-maps/raw/master/nova-google-maps-preview.png)](https://github.com/whitecube/nova-google-maps/raw/master/nova-google-maps-preview.png)

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

[](#installation)

You can install the package via composer:

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

Usage
-----

[](#usage)

```
use Whitecube\NovaGoogleMaps\GoogleMaps;

/**
 * Get the fields displayed by the resource.
 *
 * @param  \Illuminate\Http\Request  $request
 * @return array
 */
public function fields(Request $request)
{
    return [
        // ...

        GoogleMaps::make('Map')
            ->zoom(8) // Optionally set the zoom level
            ->defaultCoordinates($lat, $lng) // Optionally set the map's default center point
    ];
}
```

Storage
-------

[](#storage)

The field stores the JSON data sent back by Algolia (minus a few unneeded sub-objects). This gives you a lot of information on the selected place/address. Here is an example:

```
{
    "name": "Bruxelles",
    "type": "city",
    "query": "Bruxelles",
    "value": "Bruxelles, Région de Bruxelles-Capitale - Brussels Hoofdstedelijk Gewest, Belgique",
    "county": "Bruxelles-Capitale",
    "latlng": {"lat": 50.8466, "lng": 4.3517},
    "country": "Belgique",
    "postcode": "1000",
    "countryCode": "be",
    "administrative": "Région de Bruxelles-Capitale - Brussels Hoofdstedelijk Gewest"
}
```

Configuration
-------------

[](#configuration)

By default, you should reference your Google Maps API key in your `.env` file:

```
NOVA_GOOGLE_MAPS_API_KEY=your-api-key

```

Optionally, you can publish the config to change the API key location and the map's language by doing: `php artisan vendor:publish --tag=nova-google-maps`.

💖 Sponsorships
--------------

[](#-sponsorships)

If you are reliant on this package in your production applications, consider [sponsoring us](https://github.com/sponsors/whitecube)! It is the best way to help us keep doing what we love to do: making great open source software.

Contributing
------------

[](#contributing)

Feel free to suggest changes, ask for new features or fix bugs yourself. We're sure there are still a lot of improvements that could be made, and we would be very happy to merge useful pull requests.

Thanks!

Made with ❤️ for open source
----------------------------

[](#made-with-️-for-open-source)

At [Whitecube](https://www.whitecube.be) we use a lot of open source software as part of our daily work. So when we have an opportunity to give something back, we're super excited!

We hope you will enjoy this small contribution from us and would love to [hear from you](mailto:hello@whitecube.be) if you find it useful in your projects. Follow us on [Twitter](https://twitter.com/whitecube_be) for more updates!

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community10

Small or concentrated contributor base

Maturity41

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

2251d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8435657?v=4)[Whitecube](/maintainers/Whitecube)[@whitecube](https://github.com/whitecube)

---

Top Contributors

[![voidgraphics](https://avatars.githubusercontent.com/u/9298484?v=4)](https://github.com/voidgraphics "voidgraphics (7 commits)")

---

Tags

laravelnova

### Embed Badge

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

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

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3453.7M8](/packages/optimistdigital-nova-multiselect-field)[inspheric/nova-defaultable

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

52178.7k1](/packages/inspheric-nova-defaultable)[murdercode/nova4-tinymce-editor

Boost your Laravel Nova with the TinyMCE editor.

17186.3k1](/packages/murdercode-nova4-tinymce-editor)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11273.0k](/packages/datomatic-nova-detached-actions)[wemersonrv/input-mask

A Laravel Nova custom field text with masks on input

1198.4k](/packages/wemersonrv-input-mask)

PHPackages © 2026

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