There exists several double regions (Argentina, Kenya, Utah)
Status
acknowledged
Resolution
open
Priority
normal
Severity
minor
Steps to reproduce
When retrieving regions (
api.turfgame.com/v4/regions) there exists two for Argentina:
...{"name":"Argentina","id":251},{"name":"Argentina","id":252}...
When retrieving all zones (
api.turfgame.com/v4/zones/all) all zones belonging to a region Argentina uses the region id 251.
The same goes for Kenya ({"name":"Kenya","id":275} has all zones, {"name":"Kenya","id":327} has none).
Utah has eight zones for {"country":"us","name":"Utah","id":388} and four zones for {"country":"us","name":"Utah","id":410}
(And then there is the three regions called "template" {"name":"template","id":427},{"name":"template","id":428},{"name":"template","id":429} but they have no zones... ;-) )
Description
I found this when writing some Turf game statistics programs. This small issue means that the name field in regions can not be used as a unique identifier among regions. A fix would make the regions more coherent. As I understand the API both the region name and id should work as unique identifiers.
Also, I guess it is the meaning that the great state of Utah is so great that it should be counted twice in regard of visited regions. Or not... :-D
TLDR: not really an big issue that breaks the game but it could be addressed out of consistency.
Reported by
Issue ID
#8013
Date submitted
2018-07-10T20:25:06+02:00
Attachments
No attachments.
Related issues
No related issues.
Responses
Add comment or attachment
Please login to add a comment.