On Nov 10, 11:03 am, LuisGeoBrazil <[email protected]> wrote: > I´ve just came across Pamela´s Fox article about creating a store > locator with > Google Maps. It is suggested that we use the haversine formula, which > is a > computation of distances in great circles. Since GMaps is a 2D mao > app, i > wonder if this kind of measure, suitable for globes,and great > distances, apply > to local mesures like distance between stores. Any hints ?
The map is only 2D because it's projected to be flat. The earth is [roughly] spherical, so to calculate distances on the earth correctly, you need to use a spherical method. Once you have found the spherical distance, you can plot it on the map. Result: the haversine method is the best. 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=.
