A general GeoCode search can include city, state, county, postal code, and geocodeId. If geocodeId is included, it overrides all other search criteria.

GeoCode lookup

EndpointMethodRequired fields
/v1.0/geocodesPOSTNot applicable.

GeoCode search criteria

Search criteriaFormatDescription
cityobjectCity-level search criteria.
stateobjectState-level search criteria.
countyobjectCounty-level search criteria.
postalCodestringThe postal code value.
geocodeIdstringThe GeoCode, for doing reverse lookups by GeoCode. If geocodeId is included, only a GeoCode lookup is performed. No other search criteria is used.

GeoCode search criteria fields

Search criteriaFieldFormatDescription
citynamestringCity name.
isPrefixbooleanIf set to true, then the supplied name is a prefix. The search returns any matches with a city name that begins with the supplied text.
isCompressedbooleanSearch using a compressed city name.
statenamestringState name.
iPrefixbooleanIf set to true, then the supplied name is a prefix. The search returns any matches with a state name that begins with the supplied text.
countynamestringCounty name.
isPrefixbooleanIf set to true, then the supplied name is a prefix. The search returns any matches with a county name that begins with the supplied text.