1. Accueil
  2. Informations sur l'API développeur
  3. Distance (ligne droite) NL

Distance (ligne droite) NL

Return driving distance and time between two Dutch postcodes.

Remarque : Il s'agit de la documentation de l'API v2 qui est toujours en version bêta.

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 either be both fourpps or sixpps.

You can use the more precise sixpp postcode format only for postcodes within a 5000 meter distance. If we'd keep a bigger lookup table, the storage requirements would be too high. Revert to a fourpp postcode format for the bigger distances. That shouldn't be a problem as precision should matter less when postcodes are apart much further.

Paramètres requis

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

Paramètres optionnels

  • 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: 1000..1098, 1100..1108 (Amsterdam), 3000..3089 (Rotterdam), 5600..5658 (Eindhoven).

Autorisation

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

Pays disponibles

Pays-Bas

Vous recherchez notre API v1 ?

Documentation v1