> That probably means your approach is flawed. Why do you need all 5 > million distances in advance? Can you calculate them only when > required?
Yes I could do that of course, but saving distances in my database will avoid querying Google each time I want to show a distance. I get the distance from user_address to specific_location and save it on local database. Next time I want to get the distance info, I will use my database instead of asking Google maps. Faster (for my visitors) and less stress on Google servers. > Will a straight line approximation be good enough for many > purposes (its easy to calculate that)? Absolutely not, a straight line wont work to get "real" distances between 2 points (unless you want to show flight distance to fly from A to B). Mountains, lakes, rivers, ... too many things can alter the distance and make it differ a lot from a straight line. is regarded as a valuable commercial asset. -- 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.
