the_Grinch wrote: » I've been writing a web app for work to give you the location of the closet gas station and produce a web link that will open Google Maps on your mobile device to give you turn by turn directions to it. We have gas stations throughout the state that we can use and while you'll typically end up using the same one, being we work the entire state, there are times when you will be in an unknown area and need fuel. Of course, being behind the times, all we currently have to offer is a webpage with a list of all the stations. Two days ago I got it to the point where it would pull your location (after you agree to allow it to) and then calculate the distance to the various stations. Worked flawlessly, but the issue at hand was that they were not in the order of closest to furtherest. Yesterday I changed the datatype to a Dictionary as then I could order the values from closest to furthest. Two hours I spent trying to get it to work and for the life of me I could not get it to sort. In Python it's pretty non-trival to sort Dictionaries and it just wouldn't work. Finally I look at my code and realize I had converted the distance value to a string when I wasn't using a Dictionary and thus the sort wasn't working. Changed it and bam I was in business. Read that code kids!
johndoee wrote: » The navigation in my vehicle will do the same thing in 15 seconds worth of screen taps. I am pretty sure Google Maps does the same thing on all phones. Are you trying to re-invent the wheel?
the_Grinch wrote: » We have gas stations throughout the state that we can use and while you'll typically end up using the same one, being we work the entire state, there are times when you will be in an unknown area and need fuel.
shochan wrote: » I suppose Gas Buddy app is not usable?