Created
October 9, 2015 21:20
-
-
Save seralf/355ecd5afee5051b6848 to your computer and use it in GitHub Desktop.
geonames
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* geonames.db dump | |
* taken from http://geonames.db.94y.info/ | |
* | |
* SEE: | |
* https://github.com/mjradwin/geonames-sqlite | |
* https://github.com/robotamer/geonames-to-sqlite | |
*/ | |
SELECT geo.geonameid AS id, | |
geo.asciiname AS name, names.name AS alt_names, | |
geo.latitude, geo.longitude, | |
-- fea.abbrev, | |
TZ.name AS timezone | |
FROM geonames AS geo | |
JOIN altnames AS names ON (names.geonameid=geo.geonameid) | |
JOIN featurecodes AS fea ON (fea.featurecodeid = geo.feature_code) | |
JOIN tzones AS TZ ON (TZ.timezoneid = geo.timezone) | |
-- LIMIT 100 | |
-- OFFSET 50000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment