remizovm / geonames Goto Github PK
View Code? Open in Web Editor NEWGolang wrapper over the geonames.org website dump
License: MIT License
Golang wrapper over the geonames.org website dump
License: MIT License
Boundaries:
Simplified country boundaries are available in two slightly different formats:
shapes_simplified_low:
geonameId: The geonameId of the feature
geoJson: The boundary in geoJson format
shapes_simplified_low.json:
similar to the abovementioned file, but fully in geojson format.
The geonameId is a feature property in the geojson string.
Related: #38
Hello,
From the answer here - Maxmind returns geoname_id, which can be used to lookup the city in geonames.
Is this possible?
Right now those handlers return a simple string slice, so it's up on the user to figure out what he should delete or modify (I am talking about the object's type actually). Maybe the conversion through the number of the fields will do the trick.
Maybe I need to add some examples in case that tests are not enough.
allCountries.zip: all countries, for the UK only the outwards codes,
the UK total codes are in GB_full.csv.zip
GB_full.csv.zip the full codes for the UK, ca 1.7 mio rows
<iso countrycode>: country specific subset also included in allCountries.zip
This work is licensed under a Creative Commons Attribution 3.0 License.
This means you can use the dump as long as you give credit to geonames
(a link on your website to www.geonames.org is ok)
see http://creativecommons.org/licenses/by/3.0/
UK (GB_full.csv.zip): Contains Royal Mail data Royal Mail copyright and database
right 2017.
Related: #38
Looks like there was a change, possibly by mistake, in the CountryInfo.txt file from Geonames. In cases where a country has a neighbor, the tab for the EquivalentFipsCode field is not included at the end of the line, resulting in len(raw) to be only 18, not 19. Should handle this case by possibly only verifying that raw has a length of at least 17 and only add the neighbors and/or EquivalentFipsCode if its the 18/19.
Currently most handlers are being processed in RAM, which is not suitable for AllCountries handler or for a system with the lack or ram (< 128 mb?). Due to this AllCountries is processing data using a temporary file, which is being deleted afterwards. Maybe this is a better way, so I'll check out if it will be better for all other handlers or not.
the new adm5 column is not yet exported in the other files (in order to not break import scripts).
Instead it is availabe as separate file.
Related: #38
Welp, the project definitely needs some more detailed readme file.
Currently go convey cannot test this handler because it's taking more than 10 min to run.
Travis CI cannot complete the build process due to tests taking too long time to process. Need to fix this somehow (is there some option for travis?).
Instead of writing the zip content onto the hard drive, decompress it on the fly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.