tags:

views:

32

answers:

1

Hi,

I would like to know if it is possible to change the way the itinerary calculation algorithm works in the Google Maps API (or Bing Maps). Basically, I'd like to add options, like for example "shortest route" or "avoid highways and national roads".

I haven't found anything in the API that might manage the road's cost, so I think it's not possible but maybe someone's got an idea of a way to do that?

+1  A: 

You can do most of what you want already.

avoidHighways and avoidTolls options are available: http://code.google.com/apis/maps/documentation/javascript/reference.html#DirectionsRequest

If you specify provideRouteAlternatives you could figure out the shortest route (distance or time, your choice) based on the alternatives.

broady
Well, yes but what I want is get other types of alternative road calculation.Say, for example "Route with only left-turns" or things like that.
Gimly
Sorry - then no, there's no way for end users to modify the path finder algorithm
broady