Validate Address in Firestore

Made by Google Maps Platform

Validates addresses in Firestore using the Address Validation API by Google Maps Platform.

Works with
Cloud Firestore
0.1.3 | Source code
utilities, shipping, google-maps, location, logistics
Google Maps Platform

How this extension works

This extension validates and standardizes addresses in your Firestore documents in real-time.

On install, you will be asked to provide a target Firestore collection. When documents are created or updated within that collection, a Cloud Function is trigged that calls the Address Validation API to do the following:

  • Check whether the value at the address field is valid or not, and store the result in the addressValidity field.
  • If the address is valid, standardize the address field (field name is configurable).

For example, the following document:

    address: {
        addressLines: ["1600 Amphitheatre Parkway"],
        regionCode: "US",
        locality: "Mountain View",

Will be transformed into the following document:

    address: {
        line1: "1600 Amphitheatre Parkway",
        city: "Mountain View",
        region: "CA",
        postalCode: "94043",
        country: "US"
    addressValidity: true

Before installing

Before installing this extension, you must do the following in your Firebase project:


To install an extension, your project must be on the Blaze (pay as you go) plan.

You will be charged a small amount (typically around $0.01/month) for the Firebase resources required by this extension (even if it is not used).

This extension uses the following Firebase and Google Cloud services which may have associated charges if you exceed the service’s no-cost tier: