Address structure
Addresses differ significantly between countries. Instead of forcing all countries into a single rigid schema with many optional fields, GeoScale uses a polymorphic data model. All address results share a small set of common fields that make it easy to display and work with addresses regardless of country:
The
type field indicates the specific address schema used.
Country-specific address types extend the common fields with additional properties that reflect
the structure of the country’s address system.
For example:
- A Dutch street address contains fields such as
municipalityandprovince. - A Luxembourg street address contains fields such as
communeandcanton.
Dutch address example
Luxembourg address example
Address formatting
The API provides two ready-to-use address representations:-
single_line- a compact address suitable for UI elements such as autocomplete dropdowns.Dam 1, Amsterdam -
lines- a multi-line representation suitable for displaying a full postal address.Dam 1
1012 JS Amsterdam
Nederland
Location
Thelocation field contains the geographic coordinates of the address in WGS84.
