项目
在 GitHub 查看
AReallyGoodName/OfflineReverseGeocode
关于
在本地离线进行反向地理编码。
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文An Offline Reverse Geocoding Java library
Uses KD-Trees for extremely fast placename lookups
Licensed under The MIT License
A C# port by Necrolis is available at https://github.com/Necrolis/GeoSharp
Usage:
First download a placenames file from http://download.geonames.org/export/dump/
Allcountries.zip from that site is comprehensive however if you're on mobile try the cities1000.zip file. It's 1/80th of the size.
Then simply
ReverseGeoCode reverseGeoCode = new ReverseGeoCode(new FileInputStream("c:\\AU.txt"), true);
System.out.println("Nearest to -23.456, 123.456 is " + geocode.nearestPlace(-23.456, 123.456));
探索相关项目
加载中…