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
2
votes
1 answer

gem 'timezone' on Ruby on Rails 4

I have made an account on GeoNames enabled free webservrices to use gem 'timezone' (about a day ago). When I go to http://www.geonames.org/enablefreewebservice it says The account my_user_name has been successfully enabled to use the free…
user2725109
  • 2,286
  • 4
  • 27
  • 46
2
votes
5 answers

get place name by providing lat and long

In my application i want to get the weather report I'm using http://www.google.com/ig/api?weather="" for that by providing a city. But for me only lat and longitude is available How can I get the place name by lat and longitudes.
Aswan
  • 5,085
  • 10
  • 46
  • 70
2
votes
1 answer

Check if postalcode is double using geonames API and javascript

I'm using http://api.geonames.org/findNearbyPostalCodes to get all zip codes in a radius of 20km of the zip code which a user types in a textbox. If the user types in textbox "8280" it finds all zip codes nearer than 20km away of "8280". But for…
Therk
  • 391
  • 6
  • 23
2
votes
2 answers

Geonames API, using while() for getting names of countries

I need to get all countries with geonames api. I can use $geonames->genomes[2]->countryName to get country name of 2nd. But I want it auto like while() how can I use it with while() in php? JSON IS…
WalkerJetBat
  • 75
  • 1
  • 7
2
votes
2 answers

Fastest way to search a SQLite database thousands of times?

Question First How can I search through my SQLite database as quickly as possible? Should I parse the address data from all 60,000 rows in Excel, load those into a list, then just search for all of them at once? Switching from simply looking through…
yannikrock
  • 55
  • 2
  • 5
2
votes
1 answer

Get nearby cities in Geonames Android

Hi I am making an application in which I am supposed to find out all the cities which are nearby a specific lat-long location. Now my radius is 30km. I am using the Geoname public webservice given at : http://www.geonames.org/ I am currently using…
user590849
  • 11,655
  • 27
  • 84
  • 125
2
votes
1 answer

Uncaught TypeError with select2 and remote jsonp dataset

I'm trying to query the Geonames data with select2 and everything appears to be working with formatting the results. However, an error is generated when the results are populated and I believe it is stopping the formatSelection function from not…
d_ethier
  • 3,873
  • 24
  • 31
2
votes
1 answer

Locating closest GPS marker from Geonames database

I am developing an Android application that uses the geonames.org database. I only use the city/populated place category and their corresponding coordinates as provided by geonames. I want the user to be able to provide his/her GPS coordinates and…
Karl
  • 517
  • 7
  • 18
1
vote
0 answers

jquery autocomplete cities with geonames - avoid duplicates in autocomplete suggestion

I'm using the jqueryUI autocomplete functionality (http://jqueryui.com/demos/autocomplete/#remote-jsonp) to search surrounding shops of cities in germany and austria. my code is the following: $.ajax({ url:…
sinini
  • 1,403
  • 3
  • 19
  • 27
1
vote
2 answers

Autocomplete and Geonames: is it possible to retrieve city, state and country in separate input fields?

I am currently using a single INPUT field to trigger jQuery UI Autocomplete, which pulls data from Geonames. $( "#city_state_country" ).autocomplete({ source: function( request, response ) { $.ajax({ url:…
pepe
  • 9,799
  • 25
  • 110
  • 188
1
vote
0 answers

Can't pass lat, lng to weatherbit API, ReferenceError: data is not defined

I'm really struggling with my final project for my first ever coding course. Situation: I'm able to successfully retrieve data from Geonames API, that looks like this: Geonames API response: { lat: '50.08804', lng: '14.42076', city:…
AnnaG
  • 11
  • 1
1
vote
0 answers

Fetching local placenames from Geonames

I am trying to extract the placename in an official local language from Geonames, since I do not want to always prefer/use the English version. I am fetching the place, the country code and the alternate names list with the following function…
Robert Alexander
  • 875
  • 9
  • 24
1
vote
1 answer

retrieving the countries details from geonames using a sparql query

I am trying to get specific countries informations from geonames using "Linked Data HTW Chur sparql endpoint" (url: http://linkeddata.fh-htwchur.ch/lodestar/sparql ): PREFIX gn: PREFIX wgs84_pos:…
amine4392
  • 79
  • 6
1
vote
1 answer

PHP/cURL - GeoNames - TimeZone API - Cannot get response from API

I'm currently doing a project for a coding course. I'm trying to pull data from the GeoName TimeZone API to display on a page but I'm very stuck and I've not been able to narrow down what the problem is. Is anything able to help. Here is my code…
Tom
  • 17
  • 3
1
vote
0 answers

How to create / get the API key for the Geonames

I have tried to find anything about how to get the API key from Geonames, I have search here on Stackoverflow, on Youtube and even on Geonames own website but I can´t find anything about how to get the API key. Please need some help!
Jacob26
  • 31
  • 1
  • 3