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

Correct calculation of area for Mapbox getSimilarNearAddresses on Android #39

Open
Alex009 opened this issue Sep 28, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@Alex009
Copy link
Member

Alex009 commented Sep 28, 2020

API pass only radius value when we call getSimilarNearAddresses, but Mapbox not support search of simmilar address and we use Geocoder of Android OS. This implementation require min/max lat/lng for search, not just radius.
For now implemented this logic:

// TODO calculate bounds from radius
        @Suppress("MagicNumber")
        val radiusLatitude = maxRadius * 0.001

        @Suppress("MagicNumber")
        val radiusLongitude = maxRadius * 0.001

It should be fixed

@Alex009 Alex009 added the enhancement New feature or request label Sep 28, 2020
@Alex009
Copy link
Member Author

Alex009 commented Sep 28, 2020

Will be not actual after implementation #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant