bug修改
This commit is contained in:
+10
-5
@@ -439,12 +439,17 @@ class NewGaoDePoiBatch extends BaseBatch{
|
|||||||
def esValue = regionMap.get(key)
|
def esValue = regionMap.get(key)
|
||||||
if(esValue.township && ret.township){
|
if(esValue.township && ret.township){
|
||||||
if(esValue.name.contains(ret.name) || ret.name.contains(esValue.name)){//||
|
if(esValue.name.contains(ret.name) || ret.name.contains(esValue.name)){//||
|
||||||
def distance = GeoUtils.calculateDistance(ret.location.lon, ret.location.lat, esValue.location.lon, esValue.location.lat);
|
if(ret.location && ret.location.lon){
|
||||||
if(distance <100){
|
def distance = GeoUtils.calculateDistance(ret.location.lon, ret.location.lat, esValue.location.lon, esValue.location.lat);
|
||||||
simlarObj = esValue
|
if(distance <100){
|
||||||
println esValue.name +" "+ret.name+" "+distance
|
simlarObj = esValue
|
||||||
break;
|
println esValue.name +" "+ret.name+" "+distance
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
println ret.data_id +" 无经纬度信息"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user