Searching Addresses in Bulk

If large amounts of address data has to be geocoded, it can be useful to group and process these addresses in larger groups. Therefor the xlocate service provides the searchLocationsInBulk operation.

Benefits

Geocoding several addresses with one request has the following benefits:

  • Due the less protocol overhead, the network traffic is reduced.
  • The possibility to use a asynchronous implementation of the service operation.

Prerequisites

Check if the following prerequisites are fulfilled before you start with the use case:

  • Installed and licensed PTV xLocate service
  • Installed PTV map data

Programming Guide

There are two different ways to geocode addresses in bulk. The first one uses structured addresses:

Alternatively, it is possible to pass the addresses as a formless string: