Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicity convert and assign existing "wof:id" properties to be int64 #31

Open
thisisaaronland opened this issue Jul 31, 2024 · 0 comments

Comments

@thisisaaronland
Copy link
Member

Basically here:

https://github.com/whosonfirst/go-whosonfirst-export/blob/main/properties/wofid.go#L24-L27

Note that the way the code is written the gjson response will happily convert a value of "1234" to be 1234 when calling the Int() method. So, basically we want to derive the int value, ensure that it's not 0 and then explicitly call sjson.SetBytes to ensure that wof:id is an integer value.

Background: whosonfirst-data/whosonfirst-data#2208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant