Skip to main content
POST
/
LocationServices
/
Geocoding
/
GlobalTypeAhead
/
v1.10
/
json6.ws
cURL
curl --request POST \
  --url https://api.addressy.com/LocationServices/Geocoding/GlobalTypeAhead/v1.10/json6.ws \
  --header 'Content-Type: application/json' \
  --data '{
  "Key": "<string>",
  "Input": "<string>",
  "Countries": "<string>",
  "Limit": 7,
  "Types": "<string>",
  "Origin": "<string>",
  "addressID": "<string>"
}'
[
{
"Id": "<string>",
"Text": "<string>",
"Type": "<string>",
"Description": "<string>",
"Highlight": "<string>",
"Language": "<string>",
"Location": {
"Latitude": 123,
"Longitude": 123
},
"DependentThoroughfare": "<string>",
"DependentLocality": "<string>",
"OrganisationName": "<string>",
"SuperAdministrativeArea": "<string>",
"DoubleDependentLocality": "<string>",
"Thoroughfare": "<string>",
"AdministrativeArea": "<string>",
"BuildingName": "<string>",
"SubAdministrativeArea": "<string>",
"Locality": "<string>",
"Postcode": "<string>",
"Department": "<string>",
"SubBuilding": "<string>",
"SubBuildingFloor": "<string>",
"Number": "<string>",
"Country": "<string>",
"Iso2": "<string>",
"Iso3": "<string>",
"AdditionalFields": {
"Easting": 123,
"Northing": 123
}
}
]
The Global Geocoding API currently supports an initial set of 17 countries, with more scheduled for inclusion in the near future. See the ‘List of available countries’ section below for details of which territories are available.
ISO CodeCountry Name
CZCzech Republic
DEGermany
ESSpain
FRFrance
GBUnited Kingdom
HUHungary
IEIreland
ITItaly
JPJapan
KRRepublic of Korea
NLThe Netherlands
PLPoland
PTPortugal
RORomania
SLSlovenia
SKSlovakia
USUnited States
Text searches using the “Input” field are always free. This method will consume credit per “addressID” search and co-ordinates returned.

Use of geocodes/addresses

Use of the output of the Global Geocoding API is temporary, and only for use as part of a Store Finder. It is not permitted to index or store results for other purposes, such as use in a checkout process. For further information please see the Loqate Terms and Conditions.

Body

application/json
Key
string
default:AA11-AA11-AA11-AA11
required

The key used to authenticate with the service. For example: 'AA11-AA11-AA11-AA11'

Input
string | null

The search text to find. This can be a Town, City, State, Postcode or ZIP Code. Requests made using this as an input will be free.

Countries
string | null

A comma separated list of ISO2 or ISO3 country codes (e.g. GB or GBR). This will limit the search to those countries.

Limit
integer | null
default:7

The maximum number of results that will be returned. If not set this will default to 7. The maximum possible value is 100.

Types
string | null

The types that you want to be returned in the response. Valid types are Locality | Postcode | AdministrativeArea. This can be set to include multiple types (comma separated). For example, passing "Postcode" will only return Postcode results; passing "Locality, Postcode" will return both Locality and Postcode.

Origin
string | null

A starting location for the search. This can be the name or ISO 2 or 3 character code of a country, WGS84 coordinates (comma separated) or IP address to search from.

addressID
string | null

The unique identifier for a location, as provided in a previous Input search. For example: "VE_CiVlgwok_QT1BPT4_QT1FP0U-PT5Dwok_QD0". Requests made with this parameter will return co-ordinates and be charged.

Response

Success

Id
string | null

The unique identifier for a returned location. For example: "VE_CiVlgwok_QT1BPT4_QT1FP0U-PT5Dwok_QD0". This can be used in a subsequent "addressID" search to return co-ordinates for the location.

Text
string | null

The first half of the result that's displayed to the user. For example, if the returned location is "Worcester, Worcestershire" then Text will display "Worcester".

Type
string | null

The type of location returned. Possible values include: SuperAdministrativeArea |AdministrativeArea | SubAdministrativeArea | Locality | DependentLocality | DoubleDependentLocality | Postcode

Description
string | null

The second half of the location that's displayed to the user, featuring the broader geographic area. For example, if the returned location is "Worcester, Worcestershire" then Description will display "Worcestershire" as this is the larger geographic area.

Highlight
string | null

A list of number ranges showing which characters in the Text and Description fields match the user's search term. This can be used to determine which characters should be highlighted in bold in the search field, to give the user a visual representation of what's being searched. See here for more details.

Language
string | null

The ISO code of the display language for a result (for example: "ENG" to represent English).

Location
object

An array containing the Latitude and Longitude co-ordinates for the given location.

DependentThoroughfare
string | null

Currently will always return blank.

DependentLocality
string | null

A smaller population centre, dependent on the contents of the Locality field (i.e. District). Can only be present if Locality is present.

OrganisationName
string | null

Currently will always return blank.

SuperAdministrativeArea
string | null

The largest administrative district within a country, if applicable (most countries only use AdministrativeArea).

DoubleDependentLocality
string | null

A locality within a Dependent locality.

Thoroughfare
string | null

The name of the street or thoroughfare. Will only display for UK postcodes.

AdministrativeArea
string | null

The most common administrative district within a country (i.e. US State or UK County).

BuildingName
string | null

Currently will always return blank.

SubAdministrativeArea
string | null

In the US this can be used to define a county within a state or a sub area of a city.

Locality
string | null

The most common population centre within a country (i.e. USA City, Canadian Municipality).

Postcode
string | null

The full postal code of the address (i.e. Postcode, ZIP Code, etc.).

Department
string | null

Currently will always return blank.

SubBuilding
string | null

Currently will always return blank.

SubBuildingFloor
string | null

Currently will always return blank.

Number
string | null

Currently will always return blank.

Country
string | null

The full name of the country the location is in, as per the ISO 3166-1 standard. Intended for display purposes if you want to present this to the customer.

Iso2
string | null
Iso3
string | null
AdditionalFields
object
I