geonames

How do I convert city names to time zones?

六眼飞鱼酱① 提交于 2020-01-05 07:07:08
问题 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", "Portland")) colnames(cities)[1]<-"CityName" Ideally I'd like to attach a column with either the lat/long for each city or the time zone. I have tried using the "ggmap" package in R, but my request exceeds the maximum number of requests they allow per day. I found the

get place name by providing lat and long

喜你入骨 提交于 2019-12-21 05:55:08
问题 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. 回答1: FYI, what you're doing is called reverse geocoding. Most of the Geonames webservices are available in JSON, including findNearby. Google also has a reverse geocoding webservice What you're asking is not a small thing - a lat/lng database is almost certainly

Getting Time Zone from Lat Long Coordinates? [duplicate]

梦想的初衷 提交于 2019-12-20 11:55:16
问题 This question already has answers here : How to get a time zone from a location using latitude and longitude coordinates? (15 answers) Closed 12 months ago . I am trying to get the time zones for latitude and longitude coordinates but am having a few problems The mistakes are probably very basic I have a table in a database with around 600 rows. Each row contains a lat long coordinate for somewhere in the world I want to feed these co-ordinates into a function and then retrieve the time zone.

SPARQL filter language if possible in multiple value context

☆樱花仙子☆ 提交于 2019-12-13 02:11:23
问题 Consider the following extract from the GeoNames database : @prefix gn: <http://www.geonames.org/ontology#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . <http://sws.geonames.org/690791/> a gn:Feature ; gn:featureClass gn:A ; gn:featureCode gn:A.PCLI ; gn:alternateName "Україна"@uk , "ܐܘܟܪܢܝܐ"@arc , "Ուկրաինա"@hy , "ウクライナ"@ja , "Úkraína"@is; gn:name "Ukraine" ; gn:officialName "Ucraína"@gl , "Ukraine"@fr , "U-crai-na (Ukraine)"@vi , "ཡུ་ཀརེན།"@bo. So, I'm trying to get the name in

How to enrich places with geonames ID

ぃ、小莉子 提交于 2019-12-12 13:15:32
问题 I have a list of places which I would enrich with the IDs from geonames. Since geonames by default it's embedded into WikiData I chose to go directly via SPARQL using WikiData endpoint. My workflow: I have imported the excel file into OpenRefine and created a new project In OpenRefine I have created my graph, then I have downloaded it as RDF/XML. Here a snapshot: <rdf:Description rdf:about="http://localhost:3333/0"> <rdfs:label>Aïre</rdfs:label> <crm:P1_is_identified_by>5A1CE163-105F-4BAF

How to use GeoNames Web Services using PHP

不打扰是莪最后的温柔 提交于 2019-12-11 17:38:13
问题 I have read this post and it looks very promising. However, the answer does not go in detail with regards the implementation. Basically, given the latitude and longitude, how can I use the GeoNames Web Service to get the country. I would like the returned result to be stored in a variable so that I can then continue working with it as I wish. Thanks in advance 回答1: Do you have to use javascript for that? Geonames doesn't seem to offer a javascript api for doing your exact query (see here:

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

自古美人都是妖i 提交于 2019-12-11 02:50:52
问题 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 4-5 seconds, and i have to split the query in three parts before getting all the results i need. Basically, i have loaded the allCountries database, the admin1codes and the admin2codes. Since admin1 and admin2 unique ids are composed by information

get 2 letter state/province abbreviation

时间秒杀一切 提交于 2019-12-10 14:01:39
问题 So I'm using the GeoNames API to get country and state/province information which I'm using to populate select dropdowns in a form. This form submits it's information to a SOAP web service and the SOAP Server only understands the country and state/province data in 2 letter form. ie. CA for Canada, US for United States. The GeoNames API provides this information for the different countries but not for their children (states/provinces). Does anyone know how to get the 2 letter abbreviation for

OWLReasonerRuntimeException in Protégé using Geonames ontology

纵饮孤独 提交于 2019-12-08 04:19:53
问题 I built an ontology in Protégé 4 to describe archaeological finds and I'd like to use Geonames individuals as places of discovery. How can I add external individuals in Protégé? Do I need to import the Geonames ontology in mine? I tried to: import geonames ontology add new individual with geonames full iri add property sameAs between my place and the new individual of the point 2 but importing the Geonames ontology makes the reasoner to die with this error message: OWLReasonerRuntimeException

Retrieving data from geonames using SPARQL

我怕爱的太早我们不能终老 提交于 2019-12-05 08:08:50
问题 I am trying to get linked data from geonames in the following SPARQL, but obviously I'm doing someting wrong. prefix oxprop: <http://ophileon.com/ox/property#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix owl: <http://www.w3.org/2002/07/owl#> prefix wgs84_pos: <http://www.w3.org/2003/01/geo/wgs84_pos#> select ?poi ?poiname ?geonames ?latitude from <http://www.ophileon.com/ox/poi.rdf> # from <http://sws.geonames.org/ > where { ?poi rdfs:label ?poiname. ?poi owl:sameAs ?geonames.