Introducing Plus Codes in Place Autocomplete, Place Details and Geocoding to help you serve users everywhere
Software Engineer, Plus Codes
Miguel Ángel Vilela
Technical Solutions Engineer, Google Maps Platform
Try Google Maps Platform
Unlock access to real world data and insights with a monthly $200 Google Maps Platform credit.Get started
Although we’re constantly mapping the world–adding addresses, points of interest, roads, and more–there are many places without traditional addressing systems and some areas with no addresses or road names at all. This can be a challenge for businesses such as food delivery or on-demand transportation, that rely on precise locations to deliver services in these regions. And being able to receive goods and services at your specific location is particularly important right now.
But first, what’s a Plus Code?
A Plus Code is a simple alphanumeric code which can be combined with a locality (for example: CWC8+R9 Mountain View), derived from latitude and longitude coordinates. Anyone can find the Plus Code for any location in the world by dropping a pin in Google Maps and they’re searchable on Google Search and Google Maps. Once someone knows the Plus Codes for their frequented locations, they’re able to use them just like a traditional address.
Plus codes in Place Autocomplete
Now that we’ve integrated Plus Codes into Place Autocomplete, when your users want to call a ride, have lunch delivered, or use any other location-based service you’ve developed, your application will automatically start returning Plus Code suggestions once the first letter of the town or locality in a Plus Code address is typed.
Plus Codes in Geocoding and Place Details
The process doesn’t end there. Once your user has selected the autocompleted Plus Code, you can use either Place Details or Geocoding to convert the Plus Code’s Place ID into geographic coordinates. Alternatively, this same Place ID can be used directly in the Directions API and Distance Matrix API to quickly dispatch a driver, schedule delivery, and more.
Here's a sample code snippet of how we implement the above scenario, combining programmatic Place Autocomplete with a Geocoding API request to get the geographic coordinates of an autocomplete-generated Plus Code entered by the user. You can see the same in full context and find other implementation options on GitHub.
Geocoding now also accepts Plus Codes as the
address request parameter and will return the same Plus Code as a fully populated Geocoding result. For example, a Geocoding request with
address=GCG2%2B3M%20Kolkata will return a result with the Plus Code formatted as both a global code and as a compound code, along with
With Plus Codes in Place Autocomplete, Place Details, Directions and Geocoding, you’re able to pick up or drop off your users and deliver food to their table no matter where in the world they are–helping businesses serve users where they currently operate and expand into new regions worldwide.
For more information on Google Maps Platform, visit our website.