Grow your CSS skills. Land your dream job.

Deciding a cost for a taxi fare based on the route using Google Maps Directions API.

  • # July 9, 2013 at 5:17 am

    I’m trying to write something for a client of mine which can calculate the cost of a taxi fare by the directions. I want to integrate it with the Google Maps Directions API
    : https://developers.google.com/maps/documentation/directions/ can anyone tell me where I could get started on this project as I’ve never really tackled anything like this yet.
    Any advice is very appreciated, thank you.

    # July 9, 2013 at 1:11 pm

    Taxi services calculate by `distance` and `time` (including waiting at stop lights). Is your client aware that this will be a very rough estimate?

    # July 9, 2013 at 4:35 pm

    We developed a web app using Google maps and the javascript API’s for a muncipal transit system. I found the [youtube channel](http://www.youtube.com/user/GoogleDevelopers/search?query=maps “Google Developers?Maps”) very helpful. I also was able to find the Google maps development team blog (after a lot of digging) , the blog was really helpful. Sorry no link, but a web search or two and you could probably find it.

    I would also recommend looking at the transit layer API and possibly integrating this whenever possible we found it to be a little faster. I will say that all of this was done before the recent JavaScript maps API update, so who knows now.

    # July 10, 2013 at 7:42 am

    You could have a disclaimer that it does not include wait times or detours, etc.

    # July 11, 2013 at 8:48 am

    @chrisburton, @aaron_b & @FragaGeddon Thank you for your replies, they want something that shows them which roads they’ll have to travel down, they don’t do charges for waiting, they just set a route cost so it’s purely done on distance; however they want to know which type of roads the client will need to travel down so that the user can see an exact cost.
    Aaron, thank you, the youtube channel is proving to be rather useful.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".