补充学校经纬度
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ class FillLngLat {
|
||||
ElasticUtils.executeSqlQuery("select * from dws_poi where location is null", { data ->
|
||||
println(data)
|
||||
def lngLat = GaoDeUtils.parserByGaode(data.city, data.region + data.name + data.address)
|
||||
if (lngLat.size() == 2 ) {
|
||||
if (lngLat != null && lngLat.size() == 2 ) {
|
||||
JSONObject jsonObject = new JSONObject()
|
||||
jsonObject.put("lon", Double.valueOf(lngLat['lng']))
|
||||
jsonObject.put("lat", Double.valueOf(lngLat['lat']))
|
||||
|
||||
Reference in New Issue
Block a user