Skip to content

Fix a floating point bug and introduce a small test suite#2

Open
benclifford wants to merge 2 commits intojcristovao:masterfrom
BeautifulDestinations:pr-fixed-point
Open

Fix a floating point bug and introduce a small test suite#2
benclifford wants to merge 2 commits intojcristovao:masterfrom
BeautifulDestinations:pr-fixed-point

Conversation

@benclifford
Copy link

Small latitudes and longitudes were previously formatted into an openstreetmap request using show.

For small values, this uses exponential notation (for example, 8e-2) which the API cannot accept.

This PR changes to fixed point representation and adds a simple over-the-network test (which can demonstrate the bug if used without the fixed point change)

Ben Clifford added 2 commits October 12, 2016 10:30
These were being rendered with exponential notations
which the openstreetmap API was erroring on.

This commit switches to using fixed point representation.
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.

1 participant