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
Post a Comment