Pillar guide

Location autocomplete: when to use city, region, country, or address fields

Location autocomplete is not one generic form feature. Country selectors, region fields, city autocomplete, address autocomplete, POI search, and geocoding solve different product problems.

The practical rule

Ask for the least precise location that supports the next product action. If a city is enough, do not collect a street address. If delivery, dispatch, tax, or verification depends on a precise destination, a city field is not enough.

Compare field types

A fast decision table

Start from the workflow, not the map provider. The right autocomplete field is the smallest geographic unit that lets the product do its job.

Product need Best field type Use it when Avoid it when
Availability, pricing, billing, compliance, locale, analytics Country field Country-level segmentation is enough Local fulfillment or sub-national rules matter
Sales territories, regional filters, state or province rules Region or administrative area Country is too broad and city is unnecessary Users naturally think in cities, service areas, or addresses
Profiles, marketplaces, jobs, communities, CRM records City autocomplete A canonical city or locality is enough A building, street, unit, or postal address affects the workflow
Shipping, delivery, pickup, property, appointments Address autocomplete The exact physical or postal address matters You only need where the user, listing, or company is broadly based
Restaurants, hotels, landmarks, venues, businesses POI or places search Users are selecting a named place You only want administrative geography
Coordinates from a known place or address Geocoding You already have a selected or entered location and need coordinates You need typeahead selection UX
A label from GPS or device coordinates Reverse geocoding The app starts from coordinates The user needs to choose a canonical city, region, or country

What location autocomplete can mean

Before choosing a provider or widget, define what kind of location your product actually needs.

Country

A country field supports availability, billing, compliance, tax handling, language defaults, and market-level analytics.

Region

A region field captures administrative areas such as states, provinces, counties, departments, cantons, or other local subdivisions.

City

A city field captures the locality users recognize when they answer where they live, work, sell, hire, or search.

Address

An address field captures street-level or postal details for delivery, billing, service appointments, property, routing, or verification.

A POI or places search field is different again: it helps users choose businesses, venues, landmarks, institutions, stations, hotels, restaurants, and other named places. Google describes its Places Autocomplete API as returning place predictions such as businesses, addresses, and points of interest, with location bias and restriction options. That breadth is useful for map-connected search, but it can be too broad for a form that only asks "Where are you based?"

Geocoding and reverse geocoding are also separate tasks. A geocoder turns a known address or place description into coordinates. A reverse geocoder turns coordinates into a readable place or address label. They may sit near autocomplete in a maps platform, but they are not the same user-interface problem.

A product-first decision framework

Use these questions before you pick an API. They expose whether your form needs broad geography, canonical administrative data, exact addresses, or map search.

1. What action follows submission?

If the next action is pricing, country may be enough. If it is lead assignment, region may be enough. If it is discovery, city may be enough. If it is delivery, collect an address.

2. How precise must the value be?

Do not collect a street address if the workflow only needs market, city, region, or country. Extra precision can add friction and create data you must protect.

3. Does the value need to be canonical?

Free text can work for comments. Product records usually need stable IDs, types, country, hierarchy, and clear display labels.

4. Are coordinates required?

Coordinates attached to cities, addresses, POIs, and device GPS readings do not mean the same thing. Store the meaning together with the value.

5. Can users continue without a match?

Autocomplete datasets miss spellings, new municipalities, and edge cases. Decide whether to accept free text, let users request a missing place, or require a selected result.

6. Which geography is already known?

Country or region context can reduce ambiguity. If a user has already selected Canada, the city field should not rank Paris, France as if no context exists.

When to use country, region, or administrative-area fields

Country and region fields work best when the product decision happens at that level.

Use a country field for supported markets, billing country, tax handling, compliance workflows, language defaults, and high-level reporting. A country field should usually be structured, not free text. Store a stable country identifier and display name separately, because users may type "United States," "USA," "U.S.," or a localized equivalent.

Use a region or administrative-area field when country is too broad but city is more detail than the product needs. Good examples include sales territory routing, state or province rules, regional marketplace availability, content licensing, and regional analytics.

The main challenge is terminology. "State" is right in some countries and wrong in others. "Province," "county," "department," "region," and "administrative area" can all be correct in different contexts. PlaceField's API exposes parent context through a generic hierarchy[] response shape so integrations do not have to assume every country follows one fixed country, state, city model.

When to use city autocomplete

Use city autocomplete when the product needs a recognizable place but not a street address.

This is the right level for many SaaS signup forms, profile locations, marketplaces, CRMs, communities, job boards, directories, event forms, and discovery filters. A user can answer "Where is your company based?" or "Which city is this listing in?" without giving a home address, office suite, or postal address.

A free-text city field looks simple, but it creates messy data. Users can type abbreviations, alternate spellings, old names, local-language names, or city names without country context. A canonical city autocomplete field can store a stable ID, display label, country, administrative hierarchy, and coordinates when available.

For coordinates, be clear about meaning. A coordinate attached to a city is useful for broad ranking, display, and approximate map placement. It should not be treated as a deliverable address, a legal boundary, a service-area polygon, or proof of a user's exact location.

PlaceField is designed for this non-address use case. The API reference documents city, municipality, state, province, region, and country result types, stable IDs, hierarchy, country data, coordinates when available, language preferences, country restrictions, and geographic bias metadata. For a product overview, see the location autocomplete API, city autocomplete API, and city geocoding API pages.

When to use address autocomplete

Use address autocomplete when the address itself is required for the product to work.

Address autocomplete fits ecommerce delivery, courier pickup, field-service appointments, ride pickup and dropoff, property submissions, hotel or venue entry, utility setup, insurance quoting, and other workflows where street-level destination affects the outcome.

In those workflows, city autocomplete is under-specified. The user may choose the right city but still omit the postal code, unit number, building entrance, or street number needed for fulfillment. Address autocomplete can help entry, but it is not the same thing as address validation.

Google's Places product family separates Autocomplete from Address Validation, Geocoding, Nearby Search, Text Search, and related capabilities. Its address-form documentation also recommends requesting only the place data fields an application needs, because broad place details can include more data than the form actually uses.

When not to use address autocomplete

Do not use address autocomplete just because the field is called location.

Many product flows only need broad location. A founder directory may need city and country. A CRM may need the customer's market. A freelancer marketplace may need service cities. A job board may need office city or remote-work region. A community app may need nearby members at city level.

This is both a UX issue and a data-minimization issue. Nielsen Norman Group recommends keeping forms short and removing fields that can be omitted, derived, or collected later. The ICO's UK GDPR guidance says personal data should be adequate, relevant, and limited to what is necessary for the stated purpose.

A useful test is simple: what breaks if we do not collect the street address? If the answer is "nothing," choose a country, region, or city field instead. The location field without street addresses guide expands this pattern for signup, profile, marketplace, and CRM forms.

Provider selection: focused location autocomplete vs broad place search

The provider should match the field type. The best API for map search is not always the best API for profile, CRM, or signup fields.

Focused city, region, and country autocomplete

Use a focused location API when users need to choose administrative geography, not businesses or addresses. This is the PlaceField use case: structured city, region, administrative area, and country suggestions for apps, forms, and backends.

View PlaceField API overview

Google Places Autocomplete

Use Google Places when users need broad place search: addresses, businesses, POIs, landmarks, or a map-connected search experience. If you are comparing scope, read the focused Google Places Autocomplete alternative page.

Address validation

Use address validation when the submitted address must be standardized or checked for shipping, mailing, billing, or operational use. Autocomplete helps entry; validation helps decide whether the result is usable.

Nominatim public API

Do not use the public Nominatim service as a client-side autocomplete backend. The OpenStreetMap Foundation's usage policy limits public capacity and lists client-side autocomplete search as unacceptable use.

Self-hosted geodata

Self-hosting can make sense when you have geospatial expertise, operations capacity, and strict data-control needs. It also means owning imports, ranking, localization, uptime, and quality review.

PlaceField widget

Use the location autocomplete widget when you want browser UI for a city, region, and country field without building result rows, keyboard behavior, and mobile search yourself.

Data model: what to store

The biggest data-quality mistake is storing only the visible label.

For country, region, and city autocomplete, store a structured object. A typical record should include the stable location ID, location type, display name, country metadata, parent hierarchy, coordinates when available, dataset or provider version metadata, and optionally the original user input for audit or debugging.

Stable IDs matter because display names can change, be localized, or collide. "Portland" without hierarchy is ambiguous. "London" may mean Greater London, City of London, London in Ontario, or another locality depending on context.

For addresses, the model is different. You may need address lines, postal code, locality, region, country, geocode, validation status, deliverability metadata, and user-entered unit details. Decide whether to store the raw typed address, the standardized address, or both.

PlaceField result shape

{
  "id": "fr:city:paris",
  "type": "city",
  "name": "Paris",
  "label": "Paris, Ile-de-France, France",
  "country": { "code": "FR", "name": "France" },
  "hierarchy": [
    { "type": "country", "id": "country:fr", "name": "France" },
    { "type": "region", "name": "Ile-de-France", "code": "11" }
  ],
  "coordinates": { "lat": 48.85341, "lon": 2.3488 }
}

UX and API implementation checklist

A location autocomplete field should be forgiving, structured, and easy to escape.

  • Use a clear label such as "City," "Country," "State or province," "Company headquarters city," or "Delivery address."
  • Keep the form short and sequence fields logically. Do not hide important instructions in placeholder text.
  • Restrict or bias suggestions when parent geography is already known.
  • Store stable IDs and hierarchy, not only the visible label.
  • Request only the fields your product actually uses.
  • Decide how to handle no-match and no-selection cases before launch.
  • Avoid collecting street address data unless the workflow requires it.
  • Document what coordinates mean for your field: city center, address point, POI point, or device position.

Example choices by product type

The same word, location, means different things in different products.

SaaS signup

Often needs country, and sometimes company headquarters city. It rarely needs a full street address at first signup unless billing or compliance requires it.

Marketplace profile

Usually needs city, region, and country for browsing and filtering. Exact addresses can be collected later, closer to a transaction.

Job board

Usually needs city, region, country, remote status, or service area. Full address is only needed when office location or on-site attendance matters.

CRM lead form

May need country and region for routing, plus city for segmentation. Street address is often unnecessary before a sales conversation.

Ecommerce checkout

Needs an address flow. City autocomplete alone is not enough for shipping, delivery estimates, tax handling, or carrier requirements.

Travel discovery

May need POI search because users are looking for named hotels, airports, stations, restaurants, attractions, and landmarks.

How PlaceField fits

PlaceField is most relevant when the product team has decided not to collect street addresses and not to offer broad POI search.

Use PlaceField when you need a structured city, region, administrative area, or country field for an app, form, or backend. Use the location autocomplete API when you want custom frontend or backend control. Use the location autocomplete widget when you want ready-made browser UI. Use the city autocomplete API when the field is specifically city-level.

Do not use PlaceField as a postal address validator, routing engine, reverse geocoder, map UI, or POI search product. That boundary is a strength when your product only needs canonical administrative geography: the field can stay focused on the user's actual task.

The broader lesson is not "always use city autocomplete" or "always use address autocomplete." The right choice depends on the product action. Choose the smallest location unit that supports the workflow, store it in a structured format, and avoid collecting more detail just because an API can return it.

Sources and further reading

These references support the guide's UX, privacy, SEO, and provider-scope claims.

  1. Google Search Central: Creating helpful, reliable, people-first content
  2. Google Search Central: SEO Starter Guide
  3. Google Search Central: Link best practices
  4. ICO: Principle (c), data minimisation
  5. Google Maps Platform: Places product overview
  6. Google Developers: Autocomplete (New), Places API
  7. Google Developers: Place Autocomplete for address forms
  8. OpenStreetMap Foundation: Nominatim Usage Policy
  9. Nielsen Norman Group: Website Forms Usability, Top 10 Recommendations