Repository navigation
Calibrate the TomTom zoom offset to 1.735 - #22
Merged
Merged
Conversation
With 1.76, TomTom showed 0.025 zoom levels more area than Google Maps at the same unified zoom: the centre scale (coordinateForPoint ±200 px) differed by +0.025 at latitudes 0, 35.68 and 64.95 and zooms 9-19 on the TB520FU, about 1.7% on the CameraSync reference rectangles. With 1.735 the difference is within ±0.0005 from zoom 7 up, and +0.003 at zoom 5. Below that the globe and Mercator projections cannot be matched by a constant. The latitude term log2(cos φ) was already right, so only the base offset changes. iOS shows the same 0.025 offset and gets the same value.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TomTom showed slightly more area than Google Maps at the same unified zoom. This changes
TOMTOM_TO_GOOGLE_ZOOM_BASE_OFFSETfrom 1.76 to 1.735.Measurement
TB520FU, TomTom Maps SDK 2.7.2. Both maps on the Visible Region page at the same unified zoom and size. The centre scale is the distance between
fromScreenOffsetpoints ±200 px from the centre.+means TomTom shows more area.log2(cos φ)term was already right.Changes
ZoomAltitudeConverter: the constant, and a comment explaining the calibration.ExampleUnitTest: the pinned offsets now come from the new constant (Tokyo 1.435, Oahu 1.632).testDebugUnitTestpasses.The android-sdk-core golden test pins the formula with its own literal 1.76 and does not read this constant, so it is unaffected.
iOS measured the same 0.025 offset: MapConductor/ios-for-tomtom (same branch name).