Code Monkey home page Code Monkey logo

geonames's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

geonames's Issues

Add boundaries handlers

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

geoname_id

Hello,

From the answer here - Maxmind returns geoname_id, which can be used to lookup the city in geonames.

Is this possible?

Improve modifications and deletions handlers

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.

  • Modifications
  • Deletions

Add some examples

Maybe I need to add some examples in case that tests are not enough.

Add the "full" option to the postal codes handler

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

country_info.go does not handle new CountryInfo.txt format

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.

Move all handlers flow from in-memory to file

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.

Add AdminCode5 handler

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

Update README

Welp, the project definitely needs some more detailed readme file.

Add missing geonames.org endpoints

  • Modifications daily
  • Feature Codes (tip: language bound)
  • All Countries
  • Cities 1000
  • Cities 5000
  • Cities 15000
  • Deletions daily
  • Alternate Names modifications daily
  • Alternate Names deletions daily
  • User tags
  • Hierarchy
  • Postal Codes
  • Country boundaries

Fix failing tests

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?).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.