We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Looks like errors are printed to stderr instead of returned in the polyline decoder:
https://github.com/googlemaps/google-maps-services-go/blob/master/polyline.go#L49
This means it's not possible to tell if the whole polyline was successfully decoded.
A nicer API would be to propagate the errors up (and leave logging to stderr to the caller)
edit: actually this is log.Fatal, so if you try and parse an invalid polyline it will call os.Exit(1) - which seems non-ideal..
log.Fatal
os.Exit(1)
The text was updated successfully, but these errors were encountered:
Propagating polyline decoding error
f921276
Fix for googlemaps#142
Merged a fix that exposes failing polyline decodes as an error.
error
Sorry, something went wrong.
No branches or pull requests
Looks like errors are printed to stderr instead of returned in the polyline decoder:
https://github.com/googlemaps/google-maps-services-go/blob/master/polyline.go#L49
This means it's not possible to tell if the whole polyline was successfully decoded.
A nicer API would be to propagate the errors up (and leave logging to stderr to the caller)
edit: actually this is
log.Fatal
, so if you try and parse an invalid polyline it will callos.Exit(1)
- which seems non-ideal..The text was updated successfully, but these errors were encountered: