|
@@ -46,9 +46,8 @@ public class GeoQueryUtil {
|
|
|
@Value("${geoquery.saveWkbsFilePath:/mnt/geoQuery/GeoJSON.wkbs}")
|
|
|
private String saveWkbsFilePath;
|
|
|
|
|
|
-
|
|
|
@PostConstruct
|
|
|
- void init() {
|
|
|
+ public void init() {
|
|
|
File dataFile = new File(dataFilePath);
|
|
|
if (!dataFile.exists()) {
|
|
|
if (!dataFile.getParentFile().exists()){
|
|
@@ -145,8 +144,9 @@ public class GeoQueryUtil {
|
|
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
|
GeoQueryUtil queryUtil = new GeoQueryUtil();
|
|
|
- System.out.println( queryUtil.queryPoint("109.47237681083061,30.265446034566555"));
|
|
|
- System.out.println( queryUtil. queryPoint("134.345421050937,34.090524661738"));
|
|
|
- System.out.println( queryUtil. queryPoint("134.345421050937,34.090524661738"));
|
|
|
+ queryUtil.init();
|
|
|
+ AreaCityQuery.QueryResult queryResult = queryUtil.queryPointInfo("120.885676,23.544815");
|
|
|
+ System.out.println(queryResult);
|
|
|
+
|
|
|
}
|
|
|
}
|