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
4
votes
2 answers

Get state/province from geonames data?

I downloaded these databases for US and CA from GeoNames. The date looks like this: 5881639 100 Mile House 100 Mile House 51.64982 -121.28594 P PPL CA 02 0 917 America/Vancouver 2006-01-18 5881640 101 Mile Lake …
mpen
  • 272,448
  • 266
  • 850
  • 1,236
4
votes
1 answer

Querying Geonames API to get only city country name

Too much useless json data is being fetched when I request a specific country cities by hitting this URL: http://api.geonames.org/searchJSON?username=ksuhiyp&country=us&maxRows=1000 This returns too many json fields as you can see, question is hot…
Suhayb
  • 3,163
  • 3
  • 23
  • 30
4
votes
1 answer

Import text file from geonames using pandas python

I downloaded one of the country datasets from geonames and I used this line to parse the dataset into columns: data = pd.read_csv("C:/Users/Documents/TR.txt", sep="\t", header = None) But for some reason this doesn't parse all of the rows…
hope288
  • 725
  • 12
  • 23
4
votes
2 answers

How do I obtain a geonames API key

My apologies for the basic question, I am just starting to use Geonames. The Ruby geokit gem contains the following instruction for using Geonames: # To use this service either free or premium, you must register a key. # See…
manngs
  • 41
  • 1
  • 3
4
votes
1 answer

Rails, Solution for cities, countries, States of the entire world not with database

I need this simply function for populate my forms with intelligent choice from States > Country > City. I can populate a database and I can use simply Rails's associations, but I don't want. Is there a solution with gem using WebServices, xml and…
user4412054
4
votes
1 answer

Is there an API convert long/lat to city,country rather than Google API

Is there an API convert long/lat to city,country rather than Google API? I found that geonames does not give the city. Thanks, Ling
Ling
  • 269
  • 1
  • 3
  • 15
4
votes
1 answer

Return multiple city, state suggestions from one zipcode search

I'd like to use an API service of some sort to take in a zipcode and return any cities that match this zipcode. USPS manual lookup on their site does this, and Crate and Barrel does this in their checkout. It seems like the zipcode API from USPS is…
xEmptyCanx
  • 528
  • 3
  • 10
  • 22
4
votes
1 answer

Jquery mobile autocomplete and Geonames

I'm trying to use an automplete field to find locations, and I see the example for Jquery Mobile shown here based on Geobytes database: http://view.jquerymobile.com/1.3.1/dist/demos/widgets/autocomplete/autocomplete-remote.html $( document ).on(…
Andrea75
  • 228
  • 1
  • 4
  • 15
4
votes
1 answer

HTML5 and a Place Name Reference

Is there a way, using "semantic" properties of HTML5 (and RDFa?) to unambiguously refer to a place name? This might be using a geonames URI, so something like this (which I assume is incorrect): St…
severecci
  • 193
  • 1
  • 6
3
votes
1 answer

Geonames get latitude and longitude

I have been coding around with Google Geocoding until I found out that the Geocoding API may only be used in conjunction with a Google map. That is inconvenient because I don't need to display a map. So I switched to Geonames which is awesome! I…
CyberJunkie
  • 21,596
  • 59
  • 148
  • 215
3
votes
1 answer

How do I convert city names to time zones?

Sorry if this is repetitive, but I've looked everywhere and can't seem to find anything that addresses my specific problem in R. I have a column with city names: cities <-data.frame(c("Sydney", "Dusseldorf", "LidCombe",…
cheesetaco
  • 145
  • 1
  • 1
  • 8
3
votes
0 answers

Get city results from zip code in Twofishes

I'm evaluating Twofishes for geo lookup. I am surprised at how Twofishes handles zip codes. If I do a lookup on the string "Beverly Hills" I get a city result (woeType == 7) showing Beverly Hills, CA. So far, so good. If I do a lookup on the…
steveha
  • 74,789
  • 21
  • 92
  • 117
3
votes
2 answers

Sparql Query on GeoNames Ontology using Nearby

I'm trying several queries on the site : http://geosparql.org/ I'm very interested in trying the clause : NEARBY, for example this query using NEARBY in this way: PREFIX spatial: PREFIX rdfs:…
javierZanetti
  • 288
  • 4
  • 17
3
votes
1 answer

Getting city data from geonames.org dump files

I exported the US.zip, allcountries.zip and the cities1000.zip file from geonames.org with the intention of using it for a list of cities, states and longitude/latitude info in the US. I noticed after looking through the data that there is a whole…
chuckd
  • 13,460
  • 29
  • 152
  • 331
3
votes
1 answer

JQuery & Ajax - geonames autocomplete and requesting info fromfoursquare

I would like to find the venue (from foursquare API) for the city that i choose the name for (from geonames), but unfortunately it doesn't work. I can see that its uploading the names from geonames but the result for venue doesn't appear.
bucek
  • 142
  • 2
  • 13
1
2
3
13 14