lnglat2Geo
lnglat2Geo copied to clipboard
经纬度转省市区县乡镇离线包,采用空间查询算法,速度快(单线程5w次/s),省市区县100%准确率。
hi,感谢作者的实现。为了方便纯java同学的使用和定制,我将本项目翻译为java纯java代码。 在此基础之上做了下面的优化: 1. 序列化和反序列化 2. Leb128 3. 二级缓存(初始化加速 非首次启动6.5秒,首次20s) 4. 更好的编辑和升级离线数据包 https://github.com/virjar/geoLibChina
Exception when trying to compute pagesize, as a result reporting of ProcessTree metrics is stopped
我换了一台电脑后,执行从一个DataFrame中,使用map按行读取数据,然后对每一行的经纬度字段应用方法determineAdmin获取省份、城市,当我使用limit从DataFrame中取8条以下的数据时很快可以输出结果,但是当我使用limit(8)、limit(10)或更大的数字时,会卡在某个地方,日志会输出Exception when trying to compute pagesize, as a result reporting of ProcessTree metrics is stopped, 在本机中sparkConf设置为.setMaster("local[*]") 还没有尝试提交到服务器运行是否会遇到同样的问题 2021-09-29 11:18:11,423 DEBUG ContextCleaner:61 Spark Context Cleaner 10046 - Got cleaning task CleanAccum(0)...
您好,我在windows10、 idea中创建test.scala并执行 val admin=determineAdmin(115.11632,40.604412,CoordinateSystem.WGS84,true) println(admin.toString) println(admin.city) println(admin.cityCode) println(admin.province) println(admin.provinceCode) 得到了下面的异常 Exception in thread "main" java.io.InvalidClassException: scala.collection.immutable.List$SerializationProxy; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = -7905219378619747021 at...
init time:46567 (初始化) trans time:467 (解析时间) Admin(中国,北京市,北京城区,海淀区,清河街道,street,CN,110000,110100,110108,11010812,Location(116.298262,39.95993)) 不知道首页的5w/s是如何得到了,是不是用java调耗时会增加
为了提速.我这写了多线程..但是源码是scala写的..看不太懂..不确定是不是线程安全.在这问下.
Bumps [junit](https://github.com/junit-team/junit4) from 4.11 to 4.13.1. Release notes Sourced from junit's releases. JUnit 4.13.1 Please refer to the release notes for details. JUnit 4.13 Please refer to the release notes...
请问有海外的数据吗,通过海外的经纬可以转化为省市区吗
System.out.println(GeoTrans.determineAdmin(80.540732, 40.79937, CoordinateSystem.BD09(), false));