Hi,
two weeks ago I tried working with your c# API , so I wrote a little windows program in c#
that pull coordinates and then get a route with the RoutingApi and it worked great.
However I tried to run today the program again and I get the following > IO.Swagger.Client.ApiException:
“Free packages cannot use flexible mode”
a note:
- I use chDisable with true
the code with Visual Studio solution is available on github: https://github.com/aviadshiber/GraphHooperExample
I could not find any details about it in google or any issue that is open. why suddenly I get this error?
to my understanding the free account enables routingApi for free…
Full details on the Exception:
IO.Swagger.Client.ApiException
HResult=0x80131500
Message=Error calling RouteGet: {“message”:“Free packages cannot use flexible mode”}
Source=IO.Swagger
StackTrace:
at IO.Swagger.Api.RoutingApi.RouteGetWithHttpInfo(List1 point, Nullable
1 pointsEncoded, String key, String locale, Nullable1 instructions, String vehicle, Nullable
1 elevation, Nullable1 calcPoints, List
1 pointHint, Nullable1 chDisable, String weighting, Nullable
1 edgeTraversal, String algorithm, Nullable1 heading, Nullable
1 headingPenalty, Nullable1 passThrough, List
1 details, Nullable1 roundTripDistance, Nullable
1 roundTripSeed, Nullable1 alternativeRouteMaxPaths, Nullable
1 alternativeRouteMaxWeightFactor, Nullable1 alternativeRouteMaxShareFactor, String avoid) at IO.Swagger.Api.RoutingApi.RouteGet(List
1 point, Nullable1 pointsEncoded, String key, String locale, Nullable
1 instructions, String vehicle, Nullable1 elevation, Nullable
1 calcPoints, List1 pointHint, Nullable
1 chDisable, String weighting, Nullable1 edgeTraversal, String algorithm, Nullable
1 heading, Nullable1 headingPenalty, Nullable
1 passThrough, List1 details, Nullable
1 roundTripDistance, Nullable1 roundTripSeed, Nullable
1 alternativeRouteMaxPaths, Nullable1 alternativeRouteMaxWeightFactor, Nullable
1 alternativeRouteMaxShareFactor, String avoid)
at GraphHooperConnector.GraphHooperConnectorImpl.getRouth(Coordinate src, Coordinate dest, Nullable`1 azimuth) in C:\Users\aviad\source\repos\grapHooperTry1\GraphHooperConnector\GraphHooperConnector.cs:line 72
at grapHooperTry1.Form1.<RouteButton_Click>d__7.MoveNext() in C:\Users\aviad\source\repos\grapHooperTry1\grapHooperTry1\Form1.cs:line 56
thanks in advance,