1. Zuhause
  2. Informationen zur Entwickler-API
  3. Entfernung (gerade Linie) CH

Entfernung (gerade Linie) CH

Return driving distance and time between two Swiss postcodes.

Hinweis: Dies ist die Dokumentation für die v2-API, die sich noch im Beta-Stadium befindet.

Given a start and destination postcode, return the distance between them. If the road algorithm is selected this distance will be over the road (meters) and includes car drive time (minutes).

The given postcodes should be 4 digits long.

Erforderlich Parameter

  • toPostalCode (string): A sixpp or a fourpp to calculate to.
  • fromPostalCode (string): A sixpp or a fourpp to start calculating from.

Optional Parameter

  • algorithm (string): algorithm: Choose an algorithm. road to calculate the actual traveling distance and time over actual roads, or straight to obtain the distance in a straight line. Any subscription allows access to the straight line distance, however the road algorithm uses the drive time matrix (shortest route) that requires a ’development agency’ or higher subscription level when used through the API. For trial purposes, a range of postcodes is allowed with any subscription level: 4146 (Hochwald), 4147 (Aesch), 4148 (Pfeffingen).


authKey: This is the Authorization key. You have to add it as a GET parameter. Your auth key can be found on the CMS.

Verfügbare Länder


Suchen Sie unsere v1 API?