Adds a Google Maps Places Autocomplete field to Payload collections through a helper function spread into the fields array. Editors search for an address and the plugin can auto-populate a latitude and longitude field. Requires a Google Maps API key and Payload 2.x.
A Google Map Places Autocomplete Field for Payload CMS
Installation
npm i payload-google-autocomplete-places28
Stars
4
Forks
2
Open Issues
2 months ago
Last Updated
44
Weekly Downloads
v1.0.3
npm Version
68.4 KB
Unpacked Size
3
Dependencies
28+1 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 28 |
| Dec 4, 2026 | 28 |
| Dec 3, 2026 | 28 |
| Dec 2, 2026 | 28 |
| Dec 1, 2026 | 28 |
| Nov 30, 2026 | 28 |
| Nov 29, 2026 | 28 |
| Nov 28, 2026 | 28 |
| Nov 27, 2026 | 28 |
| Nov 26, 2026 | 28 |
| Nov 25, 2026 | 28 |
| Nov 24, 2026 | 28 |
| Nov 23, 2026 | 28 |
| Nov 22, 2026 | 28 |
| Nov 21, 2026 | 28 |
| Nov 20, 2026 | 28 |
| Nov 19, 2026 | 28 |
| Nov 18, 2026 | 28 |
| Nov 17, 2026 | 28 |
| Nov 16, 2026 | 28 |
| Nov 15, 2026 | 28 |
| Nov 14, 2026 | 28 |
| Nov 13, 2026 | 28 |
| Nov 12, 2026 | 28 |
| Nov 11, 2026 | 28 |
| Nov 10, 2026 | 28 |
| Nov 9, 2026 | 28 |
| Nov 8, 2026 | 28 |
| Nov 7, 2026 | 28 |
| Nov 6, 2026 | 28 |
| Nov 5, 2026 | 28 |
| Nov 4, 2026 | 28 |
| Nov 3, 2026 | 28 |
| Nov 2, 2026 | 28 |
| Nov 1, 2026 | 28 |
| Oct 31, 2026 | 28 |
| Oct 30, 2026 | 28 |
| Oct 29, 2026 | 28 |
| Oct 28, 2026 | 28 |
| Oct 27, 2026 | 28 |
| Oct 26, 2026 | 28 |
| Oct 25, 2026 | 28 |
| Oct 24, 2026 | 28 |
| Oct 23, 2026 | 28 |
| Oct 22, 2026 | 28 |
| Oct 21, 2026 | 28 |
| Oct 20, 2026 | 28 |
| Oct 19, 2026 | 28 |
| Oct 18, 2026 | 28 |
| Oct 17, 2026 | 28 |
| Oct 16, 2026 | 28 |
| Oct 15, 2026 | 28 |
| Oct 14, 2026 | 28 |
| Oct 13, 2026 | 28 |
| Oct 12, 2026 | 28 |
| Oct 11, 2026 | 27 |
| Oct 10, 2026 | 27 |
| Oct 9, 2026 | 27 |
| Oct 8, 2026 | 27 |
| Oct 7, 2026 | 27 |
| Oct 6, 2026 | 27 |
| Oct 5, 2026 | 27 |
| Oct 4, 2026 | 27 |
| Oct 3, 2026 | 27 |
| Oct 2, 2026 | 27 |
| Oct 1, 2026 | 27 |
| Sep 30, 2026 | 27 |
| Sep 29, 2026 | 27 |
| Sep 28, 2026 | 27 |
| Sep 27, 2026 | 27 |
| Sep 26, 2026 | 27 |
| Sep 25, 2026 | 27 |
| Sep 24, 2026 | 27 |
| Sep 23, 2026 | 27 |
| Sep 22, 2026 | 27 |
| Sep 21, 2026 | 27 |
| Sep 20, 2026 | 27 |
| Sep 19, 2026 | 27 |
| Sep 18, 2026 | 27 |
| Sep 17, 2026 | 27 |
| Sep 16, 2026 | 27 |
| Sep 15, 2026 | 27 |
| Sep 14, 2026 | 27 |
| Sep 13, 2026 | 27 |
| Sep 12, 2026 | 27 |
| Sep 11, 2026 | 27 |
| Sep 10, 2026 | 27 |
| Sep 9, 2026 | 27 |
| Sep 8, 2026 | 27 |
| Sep 7, 2026 | 27 |
| Sep 6, 2026 | 27 |
36−36 since Sep 6
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 36 |
| Dec 4, 2026 | 15 |
| Dec 3, 2026 | 16 |
| Dec 2, 2026 | 18 |
| Dec 1, 2026 | 16 |
| Nov 30, 2026 | 17 |
| Nov 29, 2026 | 27 |
| Nov 28, 2026 | 24 |
| Nov 27, 2026 | 24 |
| Nov 26, 2026 | 22 |
| Nov 25, 2026 | 19 |
| Nov 24, 2026 | 19 |
| Nov 23, 2026 | 18 |
| Nov 22, 2026 | 11 |
| Nov 21, 2026 | 29 |
| Nov 20, 2026 | 31 |
| Nov 19, 2026 | 32 |
| Nov 18, 2026 | 41 |
| Nov 17, 2026 | 41 |
| Nov 16, 2026 | 43 |
| Nov 15, 2026 | 40 |
| Nov 14, 2026 | 25 |
| Nov 13, 2026 | 23 |
| Nov 12, 2026 | 35 |
| Nov 11, 2026 | 25 |
| Nov 10, 2026 | 29 |
| Nov 9, 2026 | 27 |
| Nov 8, 2026 | 28 |
| Nov 7, 2026 | 25 |
| Nov 6, 2026 | 25 |
| Nov 5, 2026 | 18 |
| Nov 4, 2026 | 23 |
| Nov 3, 2026 | 18 |
| Nov 2, 2026 | 17 |
| Nov 1, 2026 | 15 |
| Oct 31, 2026 | 17 |
| Oct 30, 2026 | 20 |
| Oct 29, 2026 | 13 |
| Oct 28, 2026 | 8 |
| Oct 27, 2026 | 8 |
| Oct 26, 2026 | 9 |
| Oct 25, 2026 | 11 |
| Oct 24, 2026 | 11 |
| Oct 23, 2026 | 6 |
| Oct 22, 2026 | 34 |
| Oct 21, 2026 | 68 |
| Oct 20, 2026 | 92 |
| Oct 19, 2026 | 115 |
| Oct 18, 2026 | 139 |
| Oct 17, 2026 | 161 |
| Oct 16, 2026 | 185 |
| Oct 15, 2026 | 182 |
| Oct 14, 2026 | 174 |
| Oct 13, 2026 | 174 |
| Oct 12, 2026 | 174 |
| Oct 11, 2026 | 172 |
| Oct 10, 2026 | 172 |
| Oct 9, 2026 | 156 |
| Oct 8, 2026 | 135 |
| Oct 7, 2026 | 110 |
| Oct 6, 2026 | 86 |
| Oct 5, 2026 | 62 |
| Oct 4, 2026 | 44 |
| Oct 3, 2026 | 22 |
| Oct 2, 2026 | 17 |
| Oct 1, 2026 | 15 |
| Sep 30, 2026 | 14 |
| Sep 29, 2026 | 24 |
| Sep 28, 2026 | 25 |
| Sep 27, 2026 | 27 |
| Sep 26, 2026 | 33 |
| Sep 25, 2026 | 52 |
| Sep 24, 2026 | 80 |
| Sep 23, 2026 | 105 |
| Sep 22, 2026 | 130 |
| Sep 21, 2026 | 155 |
| Sep 20, 2026 | 173 |
| Sep 19, 2026 | 191 |
| Sep 18, 2026 | 179 |
| Sep 17, 2026 | 170 |
| Sep 16, 2026 | 170 |
| Sep 15, 2026 | 159 |
| Sep 14, 2026 | 159 |
| Sep 13, 2026 | 159 |
| Sep 12, 2026 | 158 |
| Sep 11, 2026 | 175 |
| Sep 10, 2026 | 165 |
| Sep 9, 2026 | 143 |
| Sep 8, 2026 | 123 |
| Sep 7, 2026 | 99 |
| Sep 6, 2026 | 72 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/795386489-root)<a href="https://payloaddirectory.dev/plugins/795386489-root"><img src="https://payloaddirectory.dev/badge/795386489-root.svg" alt="Payload Directory"></a>README
Note This plugin is currently under active development and still in an early stage. Check the roadmap below in this readme for more details / upcoming features.
The most recent version of payload-google-autocomplete-places currently only supports Payload 2.0 and up.
$ yarn add payload-google-autocomplete-places
$ npm i payload-google-autocomplete-places
import { CollectionConfig } from "payload/types";
import { googleMapAutoCompletePlaces } from "payload-google-autocomplete-places";
const Examples: CollectionConfig = {
slug: "examples",
admin: {
useAsTitle: "title",
},
fields: [
{
name: "title",
type: "text",
},
...googleMapAutoCompletePlaces({
apiKey: "", //<google maps API Key Goes Here>
name: "google_location",
label: "Google Location",
}),
],
};
import { CollectionConfig } from "payload/types";
import { googleMapAutoCompletePlaces } from "payload-google-autocomplete-places";
const Examples: CollectionConfig = {
slug: "examples",
admin: {
useAsTitle: "title",
},
fields: [
{
name: "title",
type: "text",
},
...googleMapAutoCompletePlaces({
apiKey: "", //<google maps API Key Goes Here>
name: "google_location",
label: "Google Location",
required: true,
minLengthAutocomplete: 3,
autocompletionRequest: {
bounds: [
{ lat: 50, lng: 50 },
{ lat: 100, lng: 100 },
],
componentRestrictions: {
country: ["us", "ca", "uy"],
},
}, //Note: for more information check google documentation(https://developers.google.com/maps/documentation/javascript/reference/places-autocomplete-service#AutocompletionRequest).
debounce: 400,
apiOptions: { language: "fr", region: "fr" }, //Note: for more information check google documentation(https://developers.google.com/maps/documentation/javascript/localization).
withSessionToken: true, //If this prop is set to true, the component will handle changing the sessionToken on every session. To learn more about how this works refer to Google Places Session Token docs(https://developers.google.com/maps/documentation/places/web-service/session-tokens)
admin: {
description: "Please pick a location",
disabled: false,
hidden: false,
position: "sidebar",
readOnly: false,
placeholder: "Please select a location",
},
access: {
create: () => true,
read: () => true,
update: () => true,
},
latLng: {
showFields: true,
name: "latlng",
label: "location coordinates",
required: true,
admin: {
description: "Auto populated location coordinates",
disabled: false,
hidden: false,
position: "sidebar",
},
access: {
create: () => true,
read: () => true,
update: () => true,
},
},
}),
],
};
Topics
payload phone number plugin
Phone number field with country selection, as-you-type formatting and validation in the Payload admin
69837/wk17v3
heading field
Field wrapper that lets editors choose the h1–h6 tag for text, textarea, or rich text headings
62156/wk16v3
payload better fields plugin
Improved admin panel fields for slugs, numbers, patterns, ranges, colours, phones, alerts and dates
554.2k/wk294v3
payload mask plugin
Input masking for Payload text fields using IMask
359/wk17v1 v2
payload fields
Field factories and admin components for Unicode slugs, Jalali dates, integer money and Iranian identity data
75230/wk3v3
payload plugin json form builder
Edit a Payload json field as real admin fields, with the form shape built in the admin panel
72441/wk37v3