how to get the distance betwween two points from google maps url api -


i use google maps api v2 , , know method distancefrom can distance ,

but want distance , store database ,

it has easy way :

http://ditu.google.cn/maps/geo?q=39.88509,116.336355&output=xml&sensor=true_or_false&key=abcdefg 

i visit url , response using django , , store mysql ,

now want distance , google has url api ,

thanks

i'd recommend using standard latitude/longitude calculations:

http://mathforum.org/library/drmath/sets/select/dm_lat_long.html

store latitude , longitude in database.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -