Logicify / jquery-locationpicker-plugin

JQuery Location Picker plugin
MIT License
389 stars 260 forks source link

Can't get full location address #128

Open jonalxh opened 6 years ago

jonalxh commented 6 years ago

Hi. First of all congratulations for this amazing plugin, has saved me a lot of time. I found your plugin in JQueryScript.net in the Binding UI with the widget example, and what surprised me was that It showed me the correct location address when I picked my working place, look at the picture:

location

But When I downloaded the source code It just showed me the City and Country (not the full address with streets), I tried the same location (latitude: 4.709065169438229, longitude: -74.05234146118164) in your Github repository and it didn't work too, look at the second picture:

location2

I wanna know how to put it towork like the link I referenced before, cause it was the only one place where it worked.

Thanks a lot for your help.

corvis commented 6 years ago

Hi jonalxh,

Thank you for the kind words. The first thing which comes to mind is that it was broken some time. The page you're referring uses version 0.1.12 while the recent one is 0.1.16. I may suggest to downgrade and try it again.

jonalxh commented 6 years ago

Hi, thanks for the quick answer.

Could you explain me how to downgrade? I'm not familiarized with the process.

Thank you.

2018-02-13 12:26 GMT-05:00 Dmitry Berezovsky notifications@github.com:

Hi jonalxh,

Thank you for the kind words. The first thing which comes to mind is that it was broken some time. The page you're referring uses version 0.1.12 while the recent one is 0.1.16. I may suggest to downgrade and try it again.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Logicify/jquery-locationpicker-plugin/issues/128#issuecomment-365340413, or mute the thread https://github.com/notifications/unsubscribe-auth/AL8zrsfjOU7uF4TrdycfTwjJqQUjATcTks5tUcXJgaJpZM4SEDs6 .

jonalxh commented 6 years ago

Ok, I managed to do it, you're right, this version is working fine for me. Could I suggest you to review the actual release to detect the problem in order to keep it working?

Thank you very much.

2018-02-13 13:29 GMT-05:00 Jonathan Arias G. jonalxh@gmail.com:

Hi, thanks for the quick answer.

Could you explain me how to downgrade? I'm not familiarized with the process.

Thank you.

2018-02-13 12:26 GMT-05:00 Dmitry Berezovsky notifications@github.com:

Hi jonalxh,

Thank you for the kind words. The first thing which comes to mind is that it was broken some time. The page you're referring uses version 0.1.12 while the recent one is 0.1.16. I may suggest to downgrade and try it again.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Logicify/jquery-locationpicker-plugin/issues/128#issuecomment-365340413, or mute the thread https://github.com/notifications/unsubscribe-auth/AL8zrsfjOU7uF4TrdycfTwjJqQUjATcTks5tUcXJgaJpZM4SEDs6 .

corvis commented 6 years ago

Great to see you managed it. I wish I could do this soon but unfortunately I do not have a time now. If you notice anything in the diff which might cause an issue please let me know.

On Feb 13, 2018 8:36 PM, "Jonathan Ars" notifications@github.com wrote:

Ok, I managed to do it, you're right, this version is working fine for me. Could I suggest you to review the actual release to detect the problem in order to keep it working?

Thank you very much.

2018-02-13 13:29 GMT-05:00 Jonathan Arias G. jonalxh@gmail.com:

Hi, thanks for the quick answer.

Could you explain me how to downgrade? I'm not familiarized with the process.

Thank you.

2018-02-13 12:26 GMT-05:00 Dmitry Berezovsky notifications@github.com:

Hi jonalxh,

Thank you for the kind words. The first thing which comes to mind is that it was broken some time. The page you're referring uses version 0.1.12 while the recent one is 0.1.16. I may suggest to downgrade and try it again.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Logicify/jquery-locationpicker-plugin/ issues/128#issuecomment-365340413, or mute the thread https://github.com/notifications/unsubscribe-auth/ AL8zrsfjOU7uF4TrdycfTwjJqQUjATcTks5tUcXJgaJpZM4SEDs6 .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Logicify/jquery-locationpicker-plugin/issues/128#issuecomment-365361311, or mute the thread https://github.com/notifications/unsubscribe-auth/AFVaD1t9Byngt-EsJ-B2ab0taP9eUzOBks5tUdYVgaJpZM4SEDs6 .

jonalxh commented 6 years ago

Hi again, i need a little of your help.

I wanna move the marker programatically enabling a Find Me button with HTML5 Geolocation, the idea is that by pressing the button, the map automatically moves to my current location, but I'm not able to move it, I've tried creating the map again and setting the container div to empty and creating the map again, but it doesn't work. Looking your documentation I've seen that I can create a MapContext object, using the setCenter setting I've relocated the map, and with the setPosition setting I've moved the marker, but I dont know how to write the new position value in the address input.

Could you explain me, please, what's the correct way to do it?

jonalxh commented 6 years ago

According to the problem I was experiencing with the full address text, I can confirm that It was caused due the setting addressFormat: "postal_code", deleting or commenting this setting in .js file fixed the problem.

Im waiting your answer for the last question to incorporate HTML5 Geolocation and make a pull request and improve this plugin.