通常经过4种方式中的一种或者几种来定位:GPS 基站 WIFI IPapi
网上有多个现成的接口:google
google:http://code.google.com/p/gears/wiki/GeolocationAPIcode
新浪:http://open.weibo.com/wiki/Loc/get_location接口
openCellID:http://www.opencellid.org/apiip
百度: http://dev.baidu.com/wiki/geolocation/get
从设备获取须要的参数: GPS--经纬度 基站--mobile_country_code、cell_id、location_area_code和mobile_network_code(gms和cdma稍有差异) WIFI--mac_address、signal_strength、ssid IP--ip地址 把获取到的参数提交到相应的接口,就能获取到位置信息了(经纬度、地址,固然,都有误差)io