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

OSMID can be bigger than an int #53

Open
mpitt opened this issue Nov 19, 2024 · 0 comments
Open

OSMID can be bigger than an int #53

mpitt opened this issue Nov 19, 2024 · 0 comments

Comments

@mpitt
Copy link

mpitt commented Nov 19, 2024

Hi and first of all thanks for the exporter!

I upgraded to v0.0.13 because I was facing #49, unfortunately the new geocoding method is also coming up short:

level=info msg="Looking up: Rovereto, IT"
level=fatal msg="failed to resolve location:json: cannot unmarshal number 3409185846 into Go struct field SearchResult.osm_id of type int"

It looks like the osm_id field can be a number bigger than what the int type can represent. I don't know what the maximum value can be, in my case an int64 is enough, but I guess it could even be ignored completely since it doesn't seem to be used anywhere.

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