Mindinventory / vanilla-place-picker

Simple(vanilla) yet 'Do it all' place picker for your place picking needs in Android
https://www.mindinventory.com/android-application-development.php
MIT License
120 stars 34 forks source link

On Activity Result gives me a different coordinates from the ones i did select on the map #45

Closed MahmoudiOussama closed 3 years ago

MahmoudiOussama commented 3 years ago

Hi all, I love this library and its features, have been using it for a while now. I recently noticed something weird! If I select a location where there is no road, I will get different coordinates within the onActivityResult function, those coordinates are in the nearest road from the selected ones.

Have you implemented this feature on purpose?

akashmi commented 3 years ago

@MahmoudiOussama we have not implemented any feature like that. it might be issue with location accuracy. still we will look into your issue in details. if you found solution then please create PR for that. your contribution will be always appreciated. Thanks for using this library. :)

MahmoudiOussama commented 3 years ago

@akashmi Thank you for answering, can you please point me to the part of code where you extract coordinates from google map (latitude and longitude) ?

Here a screen recording to show you what I wanted to say by this issue :

MenuTium location coordinates error

akashmi commented 3 years ago

@MahmoudiOussama You can see below path to get code location.

https://github.com/Mindinventory/vanilla-place-picker/blob/master/vanillaplacepicker/src/main/java/com/vanillaplacepicker/presentation/map/VanillaMapActivity.kt

HassanAhamd commented 3 years ago

hi Bro AutoComplete is not working properly when i try to enter my adress i start typing it did not get the location and send that my typed string via intent...

chiragmi commented 3 years ago

Hello @MahmoudiOussama Thanks for using the library.

Screenshot from 2021-08-31 17-54-52

Screenshot from 2021-08-31 17-55-16

Screenshot from 2021-09-02 17-42-11

Kindly take a reference to the attached screenshots. As you can see, selected “Turnkey Tracking Company” by marker from the library and got latitude: 35.8203366 and longitude: 10.5918915 which is approx. same as shown by Google Maps. It may be possible that you’re trying to get LAT-LNG from an address and are not returning correct values.