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

FIX: parseLocator() produces invalid coordinates #1

Merged
merged 1 commit into from
Sep 1, 2016

Conversation

ISim
Copy link
Contributor

@ISim ISim commented Aug 22, 2016

Hi,

I run into a bug in the code. The method parseLocation produced invalid coordinates. For instance the locator JN88RT was parsed into Point(187.583333, -81.291667) which is invalid. The method parseLocation mixed longitude and latitude base multiplicators.

I fixed the bug and added test parselocator_test.go to ensure that conversion of parsed coordinated produces the same gridsquare.

* table of multiplicators mixed latitude and logitude
  multiplicators
* test added
@tehmaze
Copy link
Contributor

tehmaze commented Sep 1, 2016

Merci! :-)

@tehmaze tehmaze merged commit 3c91798 into pd0mz:master Sep 1, 2016
@ISim ISim deleted the fix-parseLocator-method branch October 6, 2016 08:54
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

Successfully merging this pull request may close these issues.

2 participants