Author |
Message |
30/08/2024 23:00:09
|
odarriba
Joined: 30/08/2024 18:07:56
Messages: 1
Offline
|
Hello,
I wanted to ask how reliable is a geonameID returned by the API or obtained from a dump.
Do they change?
Is it possible, for example, that an ADM2 entry can change ID if any of its data changes?
I usually work with GeoNames data (which is great!) but I'm starting to move to hosted information rather than smashing the API to get the latest information.
I mainly use ADM1, ADM2 and cities names, so that rarely changes, but if I search by coordinates or text using the API I would like the IDs to match the local ones I fetched during seeding phase.
Thanks
|
|
|
13/09/2024 22:10:44
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4472
Online
|
the geonameid is a permanentid for a feature. It will never change.
If adm2 are merged or split new adm2 may be generated, depending on the extend of the change. If two adm2 merge and the merged adm2 has a different name and national code a new feature will be created. The others will be ADM2H.
Best Regards
Marc
|
|
|
|
19/11/2024 17:02:27
|
kwalcock
Joined: 18/11/2024 21:20:01
Messages: 1
Offline
|
I need to have geonameids for entries that I create locally. These should not overlap with existing or future official ids. It looks like the ids are integer keys to database records. In fact, they appear to be positive integers. If I make my own negative geonameids, am I reasonably sure not to overlap with any value that is provided here?
|
|
|
11/12/2024 06:39:34
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4472
Online
|
yes, you can use negative integers without collision.
Marc
|
|
|
|
|