On Dec 24, 3:37 pm, monmouthtaxis <[email protected]> wrote:
> Hi all
>
> I hope this is the right group for feature requests.

This is a good place to start with a suggestion and allow comments
before formulating a formal request. The right place for enhancement
requests is here: http://code.google.com/p/gmaps-api-issues/issues/list

> Is there a way of including in the gDirections class a getCosts in the
> method like there is a getDistance and getDuration
>
> There woiuld need to be a way of inserting your own costs into the
> code somewhere but it would be a pretty useful thing to have
> available.

But the formula for costings is likely to be unique to each site. One
would be straight pence-per-mile; another a sliding scale of so much
for the first 5 miles and a different rate thereafter; cost might
change if the duration takes the journey past midnight, etc etc.

I think that a getCosts function would be better coded for your own
particular circumstances rather than built into the API.

Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to