[OSRM-talk] What is the maximum number of alternate routes?

Stephen Woodbridge woodbri at swoodbridge.com
Mon Nov 18 17:32:20 UTC 2013


On 11/18/2013 12:05 PM, Florian Lohoff wrote:
> On Mon, Nov 18, 2013 at 11:55:56AM -0500, Stephen Woodbridge wrote:
>> Dennis,
>>
>> What is the maximum number of potential alternate routes I can
>> safely assume will be returned? Or is there no fixed number?
>
> Computer says nooooo :)
>
> The code says currently only 1 alternative route - at least thats what i
> found in the code ...

Thank you for looking at the code, I was confused by the fact that:

"route_geometry": <string>
"alternative_geometries":[<string>,...]

So "alternative_geometries" is plural and it is and array object.
And "route_geometry" is singular and returns an string object.

Thanks,
   -Steve




More information about the OSRM-talk mailing list