Title: Update geolocation
Last modified: August 2, 2022

---

# Update geolocation

 *  [Wp_begginer_pri](https://wordpress.org/support/users/wp_begginer_pri/)
 * (@wp_begginer_pri)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/update-geolocation/)
 * 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](https://wordpress.org/support/users/ninjew/)
 * (@ninjew)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/update-geolocation/#post-15883774)
 * Hello [@wp_begginer_pri](https://wordpress.org/support/users/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](https://geomywp.com/extensions/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](https://docs.geomywp.com/category/48-current-location).
   This feature is built into the core plugin.
 * I hope this helps.
 *  Thread Starter [Wp_begginer_pri](https://wordpress.org/support/users/wp_begginer_pri/)
 * (@wp_begginer_pri)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/update-geolocation/#post-15883859)
 * 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.

 * ![](https://ps.w.org/geo-my-wp/assets/icon-256x256.gif?rev=2803407)
 * [GEO my WP](https://wordpress.org/plugins/geo-my-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geo-my-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geo-my-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/geo-my-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geo-my-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geo-my-wp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Wp_begginer_pri](https://wordpress.org/support/users/wp_begginer_pri/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/update-geolocation/#post-15883859)
 * Status: not resolved