Commit e7cae8d6 by zhengxj

finish 完善距离计算 on 20191118 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@24916 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent bb88f61d
...@@ -54,8 +54,8 @@ public class AMapUtils { ...@@ -54,8 +54,8 @@ public class AMapUtils {
JSONObject geocode = geocodes.getJSONObject(0); JSONObject geocode = geocodes.getJSONObject(0);
map.put("adcode", geocode.getString("adcode")); map.put("adcode", geocode.getString("adcode"));
String location = geocode.getString("location"); String location = geocode.getString("location");
map.put("latitude", location.substring(0, location.indexOf(","))); map.put("longitude", location.substring(0, location.indexOf(",")));
map.put("longitude", location.substring(location.indexOf(",") + 1, location.length())); map.put("latitude", location.substring(location.indexOf(",") + 1, location.length()));
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!