Localhost endpoint

Hi all,

Is it possible to add extra parameters to the GET directions endpoint in order to only get the summary properties (time, distance) back as a response? And if so what is the right way doing this?

For example:
http://localhost:8080/ors/v2/directions/driving-car?&start=4.673193,51.982999&end=5.650777,52.015475
Becomes
http://localhost:8080/ors/v2/directions/driving-car?&start=4.673193,51.982999&end=5.650777,52.015475&property=features.properties.summary

Or alternatively a way avoiding that all the steps are returned?
features[0].properties.segments[0].steps

There are cases that I’m only interested in time or distance and this would speed up my processing time.

Thank you for your ideas and help

Hey,

the GET endpoint currently only has options to specify start and end point. Is there a specific reason that you’d have to use it?

You can achieve what you want rather easily using the POST-endpoint with a body similar to this:

{
  "coordinates":[[8.681495,49.41461],[8.686507,49.41943],[8.687872,49.420318]],
  "instructions":"false",
  "geometry":"false"
}

Have a look at our api docs for more examples.

Best regards

1 Like

Thank you very much!

The POST-endpoint with this body settings was exactly what I was looking for!

1 Like