• Hi,

    I had 2 small questions which will allow me to understand if I can use your plugin for my project.

    1. I know that the Geo localization information is saved in a cookie.

    Imagine a person visits my site to find a location tagged information. Then he moves his car 10 kms and visits my site again.

    Will this new visit have updated geolocation? (Site accessed from mobile with gps and my site has google map API)

    In short, does your plugin update the location data after a fixed interval and how ? In my head, maybe I need to set the cookie life to say 5 mins (forcing location update in 5 mins? ) but I decided to check with you to see what the process is ??

    2. If I just wanted to collect the geo location data of the visitor of my site, do you have a widget /shotcode to do this ? So, the idea is the homepage asks user their location data which is saved in the cookie. The user then clicks a button which leads to a page which uses that geolocation data to do other things.

    Excellent plugin and I am exploring its potential use for my project. The main feature which might be important is the update of the geolocation data as the user changes location.

    Have a nice day ahead.

    Best Regards,

    pri

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Eyal Fitoussi

    (@ninjew)

    Hello @wp_begginer_pri,

    1. The plugin is set to check for the user’s location every 24 hours. So by default, if a user visits your site again 5 minutes after his previous visit, the plugin won’t retrieve his location again. There isn’t an option at the moment to change that 24 hours duration, but you should be able to change the cookie duration using a custom JavaScript function.

    You should note, however, that the user will see that “Location permission” popup alert message each time the plugin tries to retrieve his location. And some users might find this disturbing.

    For a possible way around that alert message, have a look at the IP Address Locator extension. The extension uses the user’s IP address when retrieving the current location. And this is done silently, without the alert message. However, it does require a 3rd party IP address provider, and the location usually is less accurate than the location retrieved by the browser.

    2. Check out the Current Location widget/shortcode. This feature is built into the core plugin.

    I hope this helps.

    Thread Starter Wp_begginer_pri

    (@wp_begginer_pri)

    Hi,

    Thank you very much for the reply.

    Is there any chance you might consider updating this 24 hour retrieval and giving the plugin user a choice to choose this in the core plugin? It would immensely enhance the capabilities of your plugin and will help you attract many more users who can then use precise gelocation in their project since anyway we use google API and everything is in-built.

    Secondly, can I go into the code level and change this (and manually maintain for each update). In short, is the limitation something about the way google API is called or it is just a random choice in the code and does not affect implementation of the google API.

    Indeed if the user is asked about app permission every 5 mins it will irritate the user for sure. And IP is not precise enough for high location dependency. I will check the other links for sure.

    Many thanks in advance and have a nice day ahead.

    Best Regards,
    Pri

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Update geolocation’ is closed to new replies.