Geolocation

This services provides methods for geographical information about neighborhoodcodes and postcodes.

Summary
This services provides methods for geographical information about neighborhoodcodes and postcodes.
Returns the coordinates in the RD system of the neighborhood, given the neighborhood code.
Returns the coordinates of the given postcode in the RD system.
Returns the coordinates in the latitude/longitude system of the neighborhood, given the neighborhood code.
Returns the coordinates of the given postcode in degrees of latitude/longitude.
Returns the coordinates of the given address in degrees of latitude/longitude.
Returns the coordinates of the given address in the RD system.
Returns the postcode of the address closest to the specified latitude/longitude coordinate in the Netherlands
Returns the address and geoLocation info closest to the specified latitude/longitude coordinate in the Netherlands
Returns the postcode of the address closest to the specified Rijksdriehoeksmeting coordinate in the Netherlands
Returns the address and geoLocation info closest to the specified Rijksdriehoeksmeting X/Y coordinate in the Netherlands.
Returns the coordinates of the given postcode in degrees of latitude/longitude.
Returns the coordinates of the given address in degrees of latitude/longitude.
Returns the address and geoLocation info closest to the specified latitude/longitude coordinate.
Returns the estimated distance in meters (in a direct line) between two neighborhoods, given the neighborhood codes.
Returns the estimated distance in meters (in a direct line) between two postcodes.
Returns the distance in meters (in a direct line) between two latitude/longitude coordinates.
Returns a given neighborhoodcode list sorted in order of increasing distance from a given neighborhood
Returns a list of neighborhood codes sorted in order of increasing distance from a given neighborhood, within a given radius (in meters).
Returns a list of postcodes sorted in order of increasing distance from a given postcode, within a given radius (in meters).
Returns a given postcode list sorted in order of increasing distance from a given postcode.
Convert a latitude/longitude coordinate to a RD (‘Rijksdriehoeksmeting’) coordinate.
Convert a RD (‘Rijksdriehoeksmeting’) coordinate to a latitude/longitude coordinate.
This method is deprecated, use geoLocationLatLonToAddressV2 instead
This method is deprecated, use geoLocationRDToAddressV2 instead
This method is deprecated, use geoLocationNeighborhoodCoordinatesRD instead
This method is deprecated, use geoLocationPostcodeCoordinatesRD instead
This method is deprecated, use geoLocationNeighborhoodCoordinatesLatLon instead
This method is deprecated, use geoLocationPostcodeDistance instead
A geographical location in the RD system (‘Rijksdriehoeksmeting’).
A geographical location in the RD system (‘Rijksdriehoeksmeting’).
A geographical location in the latitude/longitude system.
A geographical location in the latitude/longitude system.
A geographical location in the latitude/longitude system.
Address information.
Address information.
Address information.
A sorted postcode entry.
A single postal neighborhoodcode entry.

Location methods

geoLocationNeighborhoodCoordinatesRD

Returns the coordinates in the RD system of the neighborhood, given the neighborhood code.

Parameters

nbcodeNeighborhoodcode to find the location of

Returns

coordinatesA RDCoordinates entry.

geoLocationPostcodeCoordinatesRD

Returns the coordinates of the given postcode in the RD system.

Parameters

postcodePostcode to find the location of

Returns

coordinatesA RDCoordinates entry.

geoLocationNeighborhoodCoordinatesLatLon

Returns the coordinates in the latitude/longitude system of the neighborhood, given the neighborhood code.

Parameters

nbcodeNeighborhoodcode to find the location of

Returns

coordinatesA LatLonCoordinates entry.

geoLocationPostcodeCoordinatesLatLon

Returns the coordinates of the given postcode in degrees of latitude/longitude.

Parameters

postcodePostcode to find the location of

Returns

coordinatesA LatLonCoordinates entry.

geoLocationAddressCoordinatesLatLon

Returns the coordinates of the given address in degrees of latitude/longitude.  You may either specify an address using postcode and house number, or using city, street and house number.  Either postcode or city is required.

When the city and street parameters are specified the city name and street name that were matched are returned in the result.

If a house number is specified its location is interpolated using coordinates of the address range it belongs to.  Accuracy may vary depending on the actual distribution of addresses in the range.  For the most accurate house number coordinates, use Kadaster::kadasterAddressCoordinates.

Parameters

postcodeAddress postcode
cityAddress city
streetAddress street
housenoAddress house number

Returns

coordinatesA LatLonCoordinatesMatch entry.

See also

Kadaster::kadasterAddressCoordinates, <geoLocationInternationalAddressCoordinatesLatLon>

geoLocationAddressCoordinatesRD

Returns the coordinates of the given address in the RD system.  You may either specify an address using postcode and house number, or using city, street and house number.  Either postcode or city is required.

When the city and street parameters are specified the city name and street name that were matched are returned in the result.

If a house number is specified its location is interpolated using coordinates of the address range it belongs to.  Accuracy may vary depending on the actual distribution of addresses in the range.  For the most accurate house number coordinates, use Kadaster::kadasterAddressCoordinates.

Parameters

postcodeAddress postcode
cityAddress city
streetAddress street
housenoAddress house number

Returns

coordinatesA RDCoordinatesMatch entry.

See also

Kadaster::kadasterAddressCoordinates

geoLocationLatLonToPostcode

Returns the postcode of the address closest to the specified latitude/longitude coordinate in the Netherlands

Parameters

latitudeLatitude of the postcode
longitudeLongitude of the postcode

Returns

postcodeThe postcode closest to the coordinates.

geoLocationLatLonToAddressV2

Returns the address and geoLocation info closest to the specified latitude/longitude coordinate in the Netherlands

This method differs from geoLocationLatLonToAddress in that it is more precise

it uses data with house number precision, instead of house number range precision.  This means that a specific house number is returned instead of a range, and that the returned address is typically closer to the coordinate than with geoLocationLatLonToAddress.  Note that this method may return a different street than geoLocationLatLonToAddress.

Parameters

latitudeLatitude of the location
longitudeLongitude of the location

Returns

addressA GeoLocationAddressV2 entry.

See also

geoLocationInternationalLatLonToAddress

geoLocationRDToPostcode

Returns the postcode of the address closest to the specified Rijksdriehoeksmeting coordinate in the Netherlands

Parameters

xx part of the RD coordinate
yy part of the RD coordinate

Returns

postcodeThe postcode closest to the coordinates.

geoLocationRDToAddressV2

Returns the address and geoLocation info closest to the specified Rijksdriehoeksmeting X/Y coordinate in the Netherlands.

This method differs from geoLocationLatLonToAddress in that it is more precise

it uses data with house number precision, instead of house number range precision.  This means that a specific house number is returned instead of a range, and that the returned address is typically closer to the coordinate than with geoLocationRDToAddress.  Note that this method may return a different street than geoLocationRDToAddress.

Parameters

xrd X of the location
yrd Y of the location

Returns

addressA GeoLocationAddressV2 entry.

International location methods

geoLocationInternationalPostcodeCoordinatesLatLon

Returns the coordinates of the given postcode in degrees of latitude/longitude.  Most countries are supported by this function.  Accuracy of the result may vary between countries.

Parameters

postcodePostcode to find the location of (postcode format varies depending on the country specified)
countryCountry of the address.  Country can be specified by using ISO3 country codes (recommended).  Complete country names may not always work.

Returns

coordinatesA LatLonCoordinates entry.

geoLocationInternationalAddressCoordinatesLatLonV2

Returns the coordinates of the given address in degrees of latitude/longitude.  Most countries are supported by this function.  Accuracy of the result may vary between countries.  Parameters: country - Country of the address.  Country can be specified by using ISO3 country codes (recommended).  Complete country names may not always work. postalcode - Postalcode houseno - House number street - Complete street name.  Street name may not be abbreviated, but may be empty. city - Complete city name.  City name may not be abbreviated, but may be empty. province - Province, state, district (depends on country, may not be abbreviated).  Ignored if not exactly matched. matchrate - The minimum matchlevel the returned search-results range [0-100] language - Language used for input and preferred language for the output.  Depending on the amount of available data and the precision of the result, the output might not match the language requested.  Returns: coordinates - A LatLonCoordinatesInternationalAddress entry.

geoLocationInternationalLatLonToAddress

Returns the address and geoLocation info closest to the specified latitude/longitude coordinate.

Parameters

latitudeLatitude of the location
longitudeLongitude of the location

Returns

addressA GeoLocationInternationalAddress entry.

Distance methods

geoLocationNeighborhoodDistance

Returns the estimated distance in meters (in a direct line) between two neighborhoods, given the neighborhood codes.

Parameters

nbcodefromNeighborhoodcode of the first neighborhood
nbcodetoNeighborhoodcode of the second neighborhood

Returns

distanceThe distance in meters.

See also

Driveinfo::driveInfoDistanceLookup

geoLocationPostcodeDistance

Returns the estimated distance in meters (in a direct line) between two postcodes.

Parameters

postcodefromFirst postcode
postcodetoSecond postcode

Returns

distanceThe distance in meters.  See also: Routeplanner::routePlannerInformation

geoLocationHaversineDistance

Returns the distance in meters (in a direct line) between two latitude/longitude coordinates.  Computed by using the Haversine formula, which is accurate as long as the locations are not antipodal (at the other side of the Earth).

Parameters

latitude_coord_1Latitude of the first location
longitude_coord_1Longitude of the first location
latitude_coord_2Latitude of the second location
longitude_coord_2Longitude of the second location
in_radiansIndicate if input is in radians (otherwise they are interpreted as degrees)

Returns

distanceThe distance in meters.

Sorting methods

geoLocationDistanceSortedNeighborhoodCodes

Returns a given neighborhoodcode list sorted in order of increasing distance from a given neighborhood

Parameters

nbcodefromNeighborhoodcode to sort the list on
nbcodesArray of neighborhood codes to sort using increasing distance to nbcodefrom.  Returns:
nbcodesA Patterns::{Type}Array of SortedPostcode entries.

geoLocationDistanceSortedNeighborhoodCodesRadius

Returns a list of neighborhood codes sorted in order of increasing distance from a given neighborhood, within a given radius (in meters).

Parameters

nbcodefromNeighborhoodcode at the center of the radius
radiusRadius from nbcodefrom to search in, in meters
pagePage to retrieve, pages start counting at 1

Returns

outA Patterns::{Type}PagedResult of SortedPostcode entries.

geoLocationDistanceSortedPostcodesRadius

Returns a list of postcodes sorted in order of increasing distance from a given postcode, within a given radius (in meters).  If the radius is larger than 1500 meters, the result will be based on neighborhood codes.

Parameters

postcodefromPostcode at the center of the radius
radiusRadius from postcodefrom to search in, in meters
pagePage to retrieve, pages start counting at 1

Returns

outA Patterns::{Type}PagedResult of SortedPostcode entries.

geoLocationDistanceSortedPostcodes

Returns a given postcode list sorted in order of increasing distance from a given postcode.

Parameters

postcodefromPostcode to sort the list on
postcodesArray of postcodes to sort using increasing distance to postcodefrom.

Returns

postcodesA Patterns::{Type}Array of SortedPostcode entries.

Coordinate conversion methods

geoLocationLatLonToRD

Convert a latitude/longitude coordinate to a RD (‘Rijksdriehoeksmeting’) coordinate.  Parameters: latitude - Latitude longitude - Longitude

Returns

outA RDCoordinates entry

geoLocationRDToLatLon

Convert a RD (‘Rijksdriehoeksmeting’) coordinate to a latitude/longitude coordinate.  Parameters: x - x part of the RD coordinate y - y part of the RD coordinate

Returns

outA LatLonCoordinates entry

Deprecated service methods

geoLocationLatLonToAddress

Notice

This method is deprecated, use geoLocationLatLonToAddressV2 instead

Returns the address and geoLocation info closest to the specified latitude/longitude coordinate in the Netherlands

Parameters

latitudeLatitude of the location
longitudeLongitude of the location

Returns

addressA GeoLocationAddress entry.

geoLocationRDToAddress

Notice

This method is deprecated, use geoLocationRDToAddressV2 instead

Returns the address and geoLocation info closest to the specified Rijksdriehoeksmeting X/Y coordinate in the Netherlands

Parameters

xrd X of the location
yrd Y of the location

Returns

addressA GeoLocationAddress entry.

geoCoordinatesRD

Notice

This method is deprecated, use geoLocationNeighborhoodCoordinatesRD instead

Returns the coordinates in the RD system of the neighborhood, given the neighborhood code.

Parameters

nbcodeNeighborhoodcode to find the location of

Returns

coordinatesA RDCoordinates entry.

geo6PPCoordinatesRD

Notice

This method is deprecated, use geoLocationPostcodeCoordinatesRD instead

Returns the coordinates in the RD system of the given postcode

Parameters

postcodePostcode to find the location of

Returns

coordinatesA RDCoordinates entry.

geoCoordinatesLatLon

Notice

This method is deprecated, use geoLocationNeighborhoodCoordinatesLatLon instead

Returns the coordinates in the latitude/longitude system of the neighborhood, given the neighborhood code.

Parameters

nbcodeNeighborhoodcode to find the location of

Returns

coordinatesA LatLonCoordinates entry.

geo6PPDistance

Notice

This method is deprecated, use geoLocationPostcodeDistance instead

Returns the estimated distance in meters (in a direct line) between two postcodes.

Parameters

postcodefromFirst postcode
postcodetoSecond postcode

Returns

distanceThe distance in meters.

Type definitions

RDCoordinates

A geographical location in the RD system (‘Rijksdriehoeksmeting’). x - The x coordinate y - The y coordinate

RDCoordinatesMatch

A geographical location in the RD system (‘Rijksdriehoeksmeting’).  Includes the city+street that was matched on.

xThe x coordinate
yThe y coordinate
citymatchName of the city that was matched
streetmatchName of the street that was matched

LatLonCoordinates

A geographical location in the latitude/longitude system.

latitudeThe latitude in degrees (floating point)
longitudeThe degrees in degrees (floating point)

LatLonCoordinatesMatch

A geographical location in the latitude/longitude system.  Includes the city+street that was matched on.

latitudeThe latitude in degrees (floating point)
longitudeThe degrees in degrees (floating point)
citymatchName of the city that was matched
streetmatchName of the street that was matched

LatLonCoordinatesInternationalAddress

A geographical location in the latitude/longitude system.  Includes some address information (if available).

postcodePostcode, format depends on country
streetStreet name, possibly including housenumber
cityCity name
provinceProvince, state, district (depends on country)
country_iso2Country name, ISO 2 abbreviation
latitudelatitude of the address
longitudelongitude of the address

GeoLocationAddress

Address information.  Only features a subset of similar complexType PCreeks.

houseno_fromLowest house number of a postcode range. domain : 0-99999
houseno_toHighest house number of a postcode range. domain : 0-99999
postcodeComplete dutch postcode
streetnameStreet name
cityCity name
districtDutch ‘gemeente’ name
provinceDutch ‘provincie’ name
distanceDistance in meters between requested location and found address
xrd x coordinate of the address
yrd y coordinate of the address
latitudelatitude of the address
longitudelongitude of the address

GeoLocationAddressV2

Address information.  Only features a subset of similar complexType PCreeks.

Differs from GeoLocationAddress by specifying an exact house number, instead of a range.

house_noHouse number. domain : 0-99999
house_no_additionHouse number addition
postcodeComplete dutch postcode
streetnameStreet name
cityCity name
districtDutch ‘gemeente’ name
provinceDutch ‘provincie’ name
distanceDistance in meters between requested location and found address
xrd x coordinate of the address
yrd y coordinate of the address
latitudelatitude of the address
longitudelongitude of the address

GeoLocationInternationalAddress

Address information.

postcodePostcode, format depends on country
streetnameStreet name, possibly including house number
cityCity name
provinceProvince, state, district (depends on country)
countryCountry name (English)
country_iso3Country name, ISO 3 abbreviation
distanceDistance in meters between requested location and found address
latitudelatitude of the address
longitudelongitude of the address

SortedPostcode

A sorted postcode entry.

postcodeThe postcode related to the entry
distanceDistance in meters to the reference point
precisionWhat kind of presision was used to determine the location: ‘neighborhood’ = the neighborhoodcode was used, ‘postcode’ = the postcode was used, ‘none’ = no location could be found.

Neighborhood

A single postal neighborhoodcode entry.

nbcodepostal neighborhoodcode
Returns the address and geoLocation info closest to the specified latitude/longitude coordinate in the Netherlands
Returns the address and geoLocation info closest to the specified Rijksdriehoeksmeting X/Y coordinate in the Netherlands.
Returns the coordinates in the RD system of the neighborhood, given the neighborhood code.
Returns the coordinates of the given postcode in the RD system.
Returns the coordinates in the latitude/longitude system of the neighborhood, given the neighborhood code.
Returns the estimated distance in meters (in a direct line) between two postcodes.
A geographical location in the RD system (‘Rijksdriehoeksmeting’).
A geographical location in the latitude/longitude system.
This method is deprecated!
A geographical location in the latitude/longitude system.
A geographical location in the RD system (‘Rijksdriehoeksmeting’).
Address information.
Returns the address and geoLocation info closest to the specified latitude/longitude coordinate.
A geographical location in the latitude/longitude system.
Address information.
Lookup the driving distance in meters between two neighborhoodcodes for both the fastest and shortest route.
Returns the route distance and driving time between two dutch postcodes.
An array of type {Type} entries.
A sorted postcode entry.
A structure that shows a page of a specific result type {Type}.
Address information.