Questions tagged [geonames]

Geonames refers to a database / webservice to query various geographic data items such as names of places, latitude, longitude, elevation, population in various languages. It contains over 10 million geographical names categorized into nine classes and further subcategorized.

GeoNames is a worldwide geographical database. It is available for download free of charge under a creative commons attribution license. It is also available via a webservice API.

198 questions
3
votes
3 answers

Python CSV to JSON parser add quotes to output

I have a CSV to JSON Python script thanks to the user Petri that let's me convert a Geonames CSV dump into a MongoImport-friendly JSON. The problem is that Geonames has a field called alternatenames that is currently quoted and treated as one long…
Karl
  • 517
  • 7
  • 18
3
votes
1 answer

Unable to select items populated via jsonp in select2

I'm trying to populate a select2 element using geonames data. I have a formatSelection method defined but it will not fire when an item is selected. Here's the HTML element: ​ Select2 binding with format…
d_ethier
  • 3,873
  • 24
  • 31
3
votes
1 answer

Administrative Levels of countries as polygons

I am trying to create a database (SQL Server) with countries and administrative levels through out the world, especially Europe. I want to use polygon data for all the areas, and use search and get "point in polygon" results. I've looked at…
user1728871
  • 153
  • 6
3
votes
3 answers

What algorithm is used for Reverse Geocoding using Geonames.org downloads?

I would use the API Geonames, but my application won't have access to the internet. So it has to run stand-alone. I see there are many files from Geonames.org to download, but I don't see any software to aid in being able to do Reverse Geocoding. I…
Edward
  • 9,430
  • 19
  • 48
  • 71
2
votes
1 answer

Geonames database: getting a full hierarchy (country -> admin1 -> admin2 -> city) with one only mysql query

i'm trying to use geonames database (downloaded and loaded on a local mysql) to get all associated informations from a location (lowest level is cityname) using Java and JDBC drivers. I have a big performance issue: each query takes something like…
Samuele Mattiuzzo
  • 10,760
  • 5
  • 39
  • 63
2
votes
1 answer

What geographical database does Facebook use?

I'm working on an auto-complete input field somewhat similar to the one on Facebook where you start typing a city and suggestions appear. I have been testing Geonames but it's not as precise as Facebook.. and Google's geocoding API can be used only…
CyberJunkie
  • 21,596
  • 59
  • 148
  • 215
2
votes
1 answer

Python string regex union returns a bunch of empty strings

I'm trying to pass a concatenated list of strings as the regular expression to re.findall: re.findall(regex, string) But I'm getting just a bunch of empty strings in a pair of lists as a result. re.findall("|".join(locations), 'Zika Outbreak Hits…
Karol Karol
  • 566
  • 3
  • 7
  • 26
2
votes
1 answer

Geonames - Admin3 and Admin4 data

I've downloaded the geonames data dump The main table has admin3 and admin4 columns but there is no data dump which corresponds to the data in these columns. Does any one know how to map the admin3 and admin4 codes with their respective place names?
adam78
  • 9,668
  • 24
  • 96
  • 207
2
votes
1 answer

how to extract specific content from a text file in python?

I am using the geonames zip code data file at this link. A sample data from above file is as below: IT 67010 Barete Abruzzi AB L'Aquila AQ 42.4501 13.2806 4 IT 67012 Cagnano Amiterno Abruzzi AB L'Aquila AQ 42.4574…
user2966197
  • 2,793
  • 10
  • 45
  • 77
2
votes
0 answers

Connecting GATE gazzeetteer_lkb to geonames remote repository

I am trying to configure gazzetteer_lkb with geonames.com remote repository so I can perform global location lookups. I need help to correctly configure the config.ttl and query.txt files Config.ttl needs to be a valid Turtle RDF format? Also I am…
FJ1993
  • 115
  • 1
  • 8
2
votes
2 answers

deserialize json string for multiple results

I am using Json.Net however when I go to deserialize the following json I get that Json cannot deserialize to type List. Json: {"postalCodes":[{"adminName2":"New…
rbur0425
  • 479
  • 8
  • 26
2
votes
1 answer

call remote web service in asp.net

I am trying to call the geonames web services and return my result in json format. I found some tutorials on the net that use httpwebrequest however in msdn it says that this is obsolete. When my code gets to the web request it keeps timing out. Any…
rbur0425
  • 479
  • 8
  • 26
2
votes
0 answers

GeoNamesClient: How can I get city, state, country, region from a zip code? C#

I'm using GeoNames, I know how to search FOR postal codes (GeoNamesClient.SearchPostalCodes) but I need the opposite, I need to get the city, state, and country associated with a specific postal code. How do I do this?
Erica Stockwell-Alpert
  • 4,624
  • 10
  • 63
  • 130
2
votes
1 answer

jQuery .autocomplete() with postal code and cityname in one input field

Hi I'm trying to build a field with autocomplete for Geo-Data (geonames.org API). I figured out how to solve input for postal code and for searching by cityname. I want to do it that it can include both. If I search with a cityname it shuold also…
Denis
  • 33
  • 6
2
votes
2 answers

get state and county a city belongs to with geonames database?

i have downloaded whole database from geonames.org and imported all countries into mysql. i wonder how i can get the continent, country, state, county when i got a city's id? cause i want to make a cascading list menu with these information. thanks!
never_had_a_name
  • 90,630
  • 105
  • 267
  • 383
1 2
3
13 14