City-level location
Use the PlaceField API for profiles, communities, marketplaces, CRMs, and directories where street-level location is too much.
City autocomplete use case
PlaceField uses the same location autocomplete API for city, region, and country fields. This page focuses on city-level forms and city geocoding use cases that should not drift into street addresses, venues, businesses, or map search.
Use the PlaceField API for profiles, communities, marketplaces, CRMs, and directories where street-level location is too much.
Return the city with country, parent hierarchy, and coordinates so records are useful beyond a display label.
Use the same country and geographic ranking options to rank likely cities while still supporting international forms.
Many products ask for a location to support search, discovery, compliance, reporting, or personalization. A city autocomplete field can be more privacy-friendly and easier to complete than a full address field.
PlaceField focuses on administrative places, so a user typing a city name is not mixed with restaurants, shops, street names, or map pins.
GET https://api.placefield.dev/v1/locations/autocomplete?q=paris&typePreset=default&geoBias=none
Authorization: Bearer pf_live_xxx
Use PlaceField when you need a structured location record, not a complete postal address.
Ask where a user is based without collecting their street address.
Store a listing's city and country for browsing, filtering, and regional discovery.
Keep normalized city and region data instead of free-text location strings.
Let visitors filter by city, region, or country without exposing precise addresses.
Use the same API directly or add the JavaScript location autocomplete widget when you want a complete browser field.
View location autocomplete widgetIf your team calls this city geocoding, the fit is place-level lookup: turn a city or region search into structured data and coordinates. Use a full geocoding product when you need street addresses or reverse geocoding.
View city geocoding use caseFor many profile, community, and marketplace forms, city-level location is enough. Read the location autocomplete decision guide for the broader field framework, or the street-address guide for privacy-friendly form design.
Read the guideShare the form you are building and whether city, region, country, or all three should be selectable.