Posts:
937
Registered:
13-Apr-2006
|
|
|
|
Place names (in views) are not correct, most of them
Posted:
2 Sep 26, 19:41
|
|
|
Hi David,
I played again with the views, this time with the „places“. And the place names for the German states are wrong, most of them. I'm aware that this is not the fault of jAlbum! Nevertheless it might be possible to get better results.
Just look at:
https://www.markus-drueck.de/public/jAlbum/2026%2008%2024%20Test%20States/index.html
It should read „Bremen“ (not „City state Bremen“)
It should read „Bayern“ (not „Bavaria“)
It should read „Sachsen“ („Freistaat Sachsen“) (not „Saxony“)
It should read „Thüringen“ (or „Freistaat Thüringen“) (not „Thuringia“)
It should read „Baden-Württemberg“ (not „Baden-Wurttemberg“)
It should read „Berlin“ (not „State of Berlin“)
It should read „Hessen“ (or „Land Hessen“) (not „Hesse“)
It should read „Niedersachsen“ (not „Lower Saxony“)
It should read „Nordrhein-Westfalen“ (not „North Rhine-Westphalia“)
It should read „Sachsen-Anhalt“ (not „Saxony-Anhalt“)
Fun fact. I'm using GeoSetter to retrieve Country, State etc. from GPS coordinates and those results are better, even if there are errors too.
In GeoSetter I'm using „ http://api.geonames.org“ (with a free account) to retrieve the names. The names which are wrong from this source are:
It should read „Bayern“ (not „Bavaria“)
It should read „Thüringen“ (or „Freistaat Thüringen“) (not „Thuringia“)
It should read „Mecklenburg-Vorpommern“ (not „Mecklenburg-Western Pomerania“)
What surprises me is that jAlbum fetches those names instead of reading the meta data of the pictures. All of my pictures already have Country, State etc. in the meta data (IPTC in this case). Why not using the info already available? This would be much faster and the result would be more correct.
I added a places view to a real album, which has pictures from Sweden, Norway, Denmark and Finland. Look for yourself if the Swedish names are OK:
https://www.markus-drueck.de/public/2026%2001%2030%20Norge/2026%2001%2030%20Norge/Orte/Schweden/index.html
The Norwegian state names are quite good. But "Nord-Trøndelag" is not correct, it should read "Trøndelag".
https://www.markus-drueck.de/public/2026%2001%2030%20Norge/2026%2001%2030%20Norge/Orte/Norwegen/index.html
The 2 Danish state names are wrong. "Capital Region" should read "Region Hovedstaden". "Zealand" should read "Region Sjælland".
https://www.markus-drueck.de/public/2026%2001%2030%20Norge/2026%2001%2030%20Norge/Orte/D%C3%A4nemark/index.html
Again, I know this is not an issue of jAlbum.
Just to let you know.
Thanks
|
|
|
Posts:
4,024
Registered:
18-Oct-2002
|
|
|
|
Re: Place names (in views) are not correct, most of them
Posted:
2 Sep 26, 21:04
in response to: MarkusD
|
|
|
|
Marcus, are you saying that, with German places, it's using their English spelled version? Can you include a few original images that have these German locations added to them?
|
|
|
Posts:
937
Registered:
13-Apr-2006
|
|
|
Posts:
4,024
Registered:
18-Oct-2002
|
|
|
|
Re: Place names (in views) are not correct, most of them
Posted:
3 Sep 26, 12:51
in response to: MarkusD
|
|
|
|
Thanks. Just to be clear: You're saying that geonames.org CAN deliver the right names as well?
|
|
|
Posts:
937
Registered:
13-Apr-2006
|
|
|
|
Re: Place names (in views) are not correct, most of them
Posted:
3 Sep 26, 13:06
in response to: davidekholm
|
|
|
Thanks. Just to be clear: You're saying that geonames.org CAN deliver the right names as well?
It's not GeoSetter itself, GeoSetter uses „ http://api.geonames.org“. And the results from „ http://api.geonames.org“ are better (than the ones from JA), so that only 3 state names are wrong.
The thing is, I have no idea how you can query an API to ask for the state names in the local language. Which API do you use in JA?
|
|
|
Posts:
937
Registered:
13-Apr-2006
|
|
|
|
Re: Place names (in views) are not correct, most of them
Posted:
3 Sep 26, 13:42
in response to: davidekholm
|
|
|
Thanks. Just to be clear: You're saying that geonames.org CAN deliver the right names as well?
Sorry, stupid me, you wrote "geonames.org"! Yes, they can deliver names too, but I have no idea how "good" they are.
I think it depends if you are able to pass a parameter to your query to get the names in the native language, which I would prefer.
Do you want to get "Gothenburg" instead of "Göteborg"? 
|
|
|
Posts:
937
Registered:
13-Apr-2006
|
|
|
|
Re: Place names (in views) are not correct, most of them
Posted:
3 Sep 26, 18:06
in response to: davidekholm
|
|
|
Thanks. Just to be clear: You're saying that geonames.org CAN deliver the right names as well?
I just asked AI:
How can you query http://api.geonames.org using GPS coordinates so that, for example, it always returns the name of a federal state in that state's own spelling—i.e., "Bayern" instead of "Bavaria"?
Answer:
To ensure that the GeoNames API returns the name of a federal state (like a German state) in its own local spelling (e.g., "Bayern" instead of "Bavaria"), you can use the `language` parameter in your API request to specify the desired language.
**Here's how you can do it:**
1. **Use the `geoname` or `search` service with latitude and longitude.**
For example, `search` allows you to query by coordinates.
2. **Set the `lang` parameter to the desired language code.**
- For German, use `lang=de`.
- This will get the names in German, thus returning "Bayern" instead of "Bavaria".
3. **Include your username.**
- You must have a registered account at GeoNames and include your username (`username=your_username`).
Example API Request
```plaintext
http://api.geonames.org/search?lat=48.1351&lng=11.5820&maxRows=1&username=your_username&lang=de
```
Explanation
+ `lat` and `lng`: The GPS coordinates.
+ `maxRows=1`: To get the most relevant result.
+ `lang=de`: To get names in German.
+ Replace `your_username` with your actual GeoNames username.
Additional Tips
+ To get more precise results, you can specify additional parameters like `style=full` or `featureCode` if needed.
+ If you get a response with multiple results, you can pick the one that best matches your criteria.
Summary
+ Use the `lang=de` parameter in your API request.
+ Ensure your coordinates are accurate.
+ Use `search` or `reverse` geocoding methods provided by GeoNames.
This approach will help you consistently get the local spelling of place names, including federal states like "Bayern".
|
|
|
Posts:
4,024
Registered:
18-Oct-2002
|
|
|
|
Re: Place names (in views) are not correct, most of them
Posted:
3 Sep 26, 19:26
in response to: MarkusD
|
|
|
|
It turned out that we don't pass a language parameter. I really don't know how we could have missed this, but I've now added it. It gets the language from what's currently set as language in jAlbum's Preferences. To get the fix, use v39.9, then do a core update to 39.9.1
|
|
|
Posts:
8,577
Registered:
31-Jan-2006
|
|
|
|
Re: Place names (in views) are not correct, most of them
Posted:
3 Sep 26, 19:56
in response to: davidekholm
|
|
|
|
You folks obviously haven’t gotten the memo. From now on all places will be called America. Gulf of America, Lake America, American Ocean, planet America. Much simpler that way.
|
|
|
Posts:
937
Registered:
13-Apr-2006
|
|
|
|
Re: Place names (in views) are not correct, most of them
Posted:
3 Sep 26, 20:22
in response to: davidekholm
|
|
|
It gets the language from what's currently set as language in jAlbum's Preferences. To get the fix, use v39.9, then do a core update to 39.9.1
David, thanks for this!
To be honest, I'm thinking if the new result is what I really had in mind.  I have to rethink what I expect and if this makes sense to other users.
|
|
|
Posts:
937
Registered:
13-Apr-2006
|
|
|
|
Re: Place names (in views) are not correct, most of them
Posted:
5 Sep 26, 12:26
in response to: davidekholm
|
|
|
It turned out that we don't pass a language parameter. I really don't know how we could have missed this, but I've now added it. It gets the language from what's currently set as language in jAlbum's Preferences.
To be honest, that is not what I have in mind.
When I started to write travel reports I use the local country and city names.
Not "Norwegen" (German), not "Norway" (Englisch), but "Norge" (Norwegian). Not "Tromsö" (like most Germans write it), not "Tromso" (like English speaking people write it), but "Tromsø" (the original Norwegian word). I hope you get the idea.
So the new behaviour of JA for place names is now more consistent, but is it "correct"?
Please have a look into this article:
https://wiki.openstreetmap.org/wiki/Key:name
Then go for example to:
https://www.openstreetmap.org/relation/2978650
The "name" property is "Norge", and that is what I would like to get.
Go for:
https://www.openstreetmap.org/relation/52822
The "name" property is "Sverige", and that is what I would like to get.
I'm not sure if other users think the same way, probably not.
David, I'm leaving this to you how to handle place names. Maybe it would be possible to have an option to retrieve the place names in the way they are written in country of origin.
Thanks.
|
|
|
Posts:
4,087
Registered:
4-Aug-2006
|
|
|
|
Re: Place names (in views) are not correct, most of them
Posted:
5 Sep 26, 13:36
in response to: MarkusD
|
|
|
It turned out that we don't pass a language parameter. I really don't know how we could have missed this, but I've now added it. It gets the language from what's currently set as language in jAlbum's Preferences.
To be honest, that is not what I have in mind.
When I started to write travel reports I use the local country and city names.
Not "Norwegen" (German), not "Norway" (Englisch), but "Norge" (Norwegian). Not "Tromsö" (like most Germans write it), not "Tromso" (like English speaking people write it), but "Tromsø" (the original Norwegian word). I hope you get the idea.
So the new behaviour of JA for place names is now more consistent, but is it "correct"?
I'm not sure if other users think the same way, probably not.
David, I'm leaving this to you how to handle place names. Maybe it would be possible to have an option to retrieve the place names in the way they are written in country of origin.
Thanks.
I think you might have a unique view on this. I’d expect, and is what I see, that travelogues use place names in the language of the target country. For example
https://www.visitnorway.de/
https://www.visitnorway.com/
|
|
|
Posts:
937
Registered:
13-Apr-2006
|
|
|
|
Re: Place names (in views) are not correct, most of them
Posted:
5 Sep 26, 14:00
in response to: RobM
|
|
|
It turned out that we don't pass a language parameter. I really don't know how we could have missed this, but I've now added it. It gets the language from what's currently set as language in jAlbum's Preferences.
To be honest, that is not what I have in mind.
When I started to write travel reports I use the local country and city names.
Not "Norwegen" (German), not "Norway" (Englisch), but "Norge" (Norwegian). Not "Tromsö" (like most Germans write it), not "Tromso" (like English speaking people write it), but "Tromsø" (the original Norwegian word). I hope you get the idea.
So the new behaviour of JA for place names is now more consistent, but is it "correct"?
I'm not sure if other users think the same way, probably not.
David, I'm leaving this to you how to handle place names. Maybe it would be possible to have an option to retrieve the place names in the way they are written in country of origin.
Thanks.
I think you might have a unique view on this. I’d expect, and is what I see, that travelogues use place names in the language of the target country. For example
Rob, the official web sites (driven by tourism organisations) use the local language, yes.
I'm not sure if I understand you right, but the examples you mentioned are doing exactly what I do too.
|
|
|
Posts:
8,577
Registered:
31-Jan-2006
|
|
|
|
Re: Place names (in views) are not correct, most of them
Posted:
5 Sep 26, 14:04
in response to: MarkusD
|
|
|
I'm not sure if I understand you right, but the examples you mentioned are doing exactly what I do too.
I don't think so. The visitnorway.de site calls the country Norwegen. The visitnorway.com site calls it Norway. Neither calls it Norge.
ETA: And visitnorway.fr calls it Norvège.
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|