摘要:
android客户端:Importimport com.baidu.mapapi.CoordinateConvert;import com.baidu.mapapi.GeoPoint;CodeGeoPoint p = new GeoPoint(x, y);GeoPoint p2 = CoordinateConvert.bundleDecode(CoordinateConvert.fromWgs84ToBaidu(p));其变量p为从GPS直接读到的点,p2为在在地图上显示的点;PHP 网页:<?phpfunction getgps($lats,$lngs, $gps=false, $go 阅读全文