1. Home
  2. Developer API information
  3. Distance (straight line) CH

Distance (straight line) CH

Return driving distance and time between two Swiss postcodes.

Note: This is the documentation for the v2 API which is still in beta.

GET Example request:

https://api.pro6pp.nl/v2/distance/ch?authKey=YOUR_AUTH_KEY&fromPostalCode=1012&toPostalCode=1011&algorithm=road

This application gives the following result:

200: address available
{
  "distance": 1426
}

Error responses

401: Not authenticated
404: No results found

Available countries

Switzerland

Looking for our v1 API?

v1 Documentation