| Author |
Message |
|
|
rsync is not planed.
Marc
|
 |
|
|
It is a normal full text search (term frequency–inverse document frequency) combined with the relevancy of the places.
Marc
|
 |
|
|
it is up again.
Marc
|
 |
|
|
When I look at the web service I see exactly the coordinates mentioned in this thread:
http://ws.geonames.org/postalCodeSearch?postalcode=6003&maxRows=10&style=full&country=au
Marc
|
 |
|
|
the toponym database and the postalcode database are not yet normalized and are not using the same admin codes for all countries. For some countries they do, for other not. If you have scripts for some country it would be nice to post it for others with the same wish.
Best
Marc
|
 |
|
|
Frederic
GeoNames is free to use, you can save it and do what you want. However, it would be nice to give credit to the project with a link or some other reference: http://www.geonames.org/export/
Best
Marc
|
 |
|
|
Ciao Giampaolo
You find the link in the admincode2 field. The combination of countrycode, admincode1 and admincode2 defines the ADM2.
<adminCode1>20</adminCode1>
<adminName1>Veneto</adminName1>
<adminCode2>TV</adminCode2>
<adminName2>Provincia di Treviso</adminName2>
<adminCode3>026086</adminCode3>
<adminName3>Treviso</adminName3>
http://ws.geonames.org/search?q=treviso&maxRows=10&lang=es&style=full
Best
Marc
|
 |
|
|
Yes, it will be in the next release.
Marc
|
 |
|
|
There are a nearly an infinite number of tags or templates used in wikipedia.
"the complete list of wikipedia pages (in any language)" is an impossible task. You have to aim lower.
Best
Marc
|
 |
|
|
I would implement it like this:
Code:
public static List<Toponym> findNearby(double latitude, double longitude,
FeatureClass featureClass, String[] featureCodes)
throws IOException, Exception {
List<Toponym> places = new ArrayList<Toponym>();
String url = "/findNearby?";
url += "&lat=" + latitude;
url += "&lng=" + longitude;
if (featureClass != null) {
url += "&featureClass=" + featureClass;
}
if (featureCodes != null && featureCodes.length > 0) {
for (String featureCode : featureCodes) {
url += "&featureCode=" + featureCode;
}
}
url = addUserName(url);
url = addDefaultStyle(url);
SAXBuilder parser = new SAXBuilder();
Document doc = parser.build(connect(url));
Element root = doc.getRootElement();
for (Object obj : root.getChildren("geoname")) {
Element toponymElement = (Element) obj;
Toponym toponym = getToponymFromElement(toponymElement);
places.add(toponym);
}
return places;
}
|
 |
|
|
Updates through the wiki interface or the api trigger an immediate index update and are propagated to all servers. The propagation to the servers sometimes gets out of sync and a complete copy of the search index and the database is required.
Marc
|
 |
|
|
There are at least two approaches.
The first is to use the hierarchy services and get the children of the US:
http://ws.geonames.org/children?geonameId=6252001
another approach is to use the search service and get all ADM1 for the US:
http://ws.geonames.org/search?&maxRows=100&featureCode=ADM1&country=US
Best
Marc
|
 |
|
|
GeoNames doesn't know the boundaries of Paris. The service is called 'nearBy' and returns the nearest city (distance to centroid).
Best
Marc
|
 |
|
|
As far as I know Neuilly-sur-Seine is independent of Paris the city. Wasn't Sarkozy a Mayor there?
Information about Metropolitan areas and relation of PPL forming them is not yet supported:
http://groups.google.com/group/geonames/browse_thread/thread/c6bcb654641e8b66
Best
Marc
|
 |
|
|
Jeff
There are a couple of servers that need to be updated and it will take some days till it is available on all servers.
Do you happen to know the correct timezone for St. Lawrence Island in Alaska? My sources are not very clear about this. Is is the same as the western part of the Aleutian Islands?
Best
Marc
|
 |
|
|
GeoNames is focusing on the data. Sure it would be nice to release the code as well, but it would cost too much time and resources so that it is better to stay focused on what is really important. The release of the client software was a test to see whether it would speed up development, but it did not, at the contrary.
Best
Marc
|
 |
|
|
small prefixes are hardcoded into the search index and longer prefixes are expanded into a wildcard query.
The index now includes longer prefixes than before, lets hope this will suffice.
Best
Marc
|
 |
|
|
there is nothing weird.
findNearby returns everything including hotels,
findNearbyPlaceName returns populated places including neighbourhoods (PPLX)
your query returns populated places, and Neuilly-sur-Seine has the feature code PPL in the database.
Best
Marc
|
 |
|
|
The files are downloadable in the download section as tab separated files. I guess there are some tools around to convert spreadsheets into kml.
Best
Marc
|
 |
|
|
the states have the feature code ADM1 in the download files.
Marc
PS: it is not necessary to post the same question twice.
|
 |
|
|