我正在开发GPS服务器和跟踪系统:
我非常感谢您的回答或建议
答案 0 :(得分:2)
使用反向地理编码器。 http://code.google.com/apis/maps/documentation/geocoding/#ReverseGeocoding
使用Google地图等地图API。 http://code.google.com/apis/maps/documentation/javascript/
答案 1 :(得分:0)
在这里找到How to convert GPS coordinates to a full address with php?
在Ruby中:
require 'curb'
require 'json'
class GpsUtils
GOOGLE_MAP_URL = "http://maps.googleapis.com/maps/api/geocode/json?latlng="
class << self
# Return the address
def convert_from_gps_coordinates_to_address(lat, long)
response = Curl.get(GOOGLE_MAP_URL + lat + "," + long)
json_response = JSON.parse(response.body_str)
# Read the full address (formatted_address) from json_response
json_response["results"].first["formatted_address"]
end
end
end
GpsUtils.convert_from_gps_coordinates_to_address("19.43250", "-99.1330"