GeoLocation question

This topic contains 13 replies, has 5 voices, and was last updated by  Stiofan O’Connor 7 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #368776

    jotomas
    Buyer
    Post count: 802

    Hi,

    I am playing with geolocation settings (as per screenshot attached) and I am not sure if it is possible to achieve this and, if it is possible, how:

    “On first time load users will be auto geolocated without being asked if they with to be geolocated via a popup and will not be redirected, that is, they will stay in the home page (which is a WordPress page, not the location or any other GD page).”

    I look forward to your reply.

    Thank you very much once again for your help.

    Best regards.

    #368797

    Joy
    Buyer
    Post count: 1076

    I don’t think auto location detection is possible right now. But if you don’t want them to be redirected, just select the “No Redirection” option.

    #368807

    jotomas
    Buyer
    Post count: 802

    Hi Joy,

    Thank you very much for your response.

    I am not sure to understand the concept of “auto location detection”. I thought that it is what happens when this option is unchecked: “Ask user if they wish to be geolocated. If this option is selected, users will be asked if they with to be geolocated via a popup”.

    Or this other concept: “on first time load users will be auto geolocated”. On first load of which page?

    Does geolocation work only in GD location pages? Then, if I want the user to be geolocated, he has to necessarily visit a GD location page?

    I look forward to your reply.

    Thank you very much once again for your help and patience.

    Best regards.

    #368808

    Joy
    Buyer
    Post count: 1076

    Hi Jotomas,

    I myself recently got a clear understanding on how the GeoLocation function works. I’m happy to do my best, but if any developers read this and I am mistaken, please correct me as needed…

    The popup is a way to force the browser to ask the site visitor for location information. If you set the popup to ask for permission, if the visitor accepts, they will then need to confirm that permission from their browser. At this point the widgets(with location enabled) and the location page will be “activated” and show results that are near the website visitor’s shared location.

    As it now stands, to see the listings near the visitor the locations page is the default. I do not believe we currently have the ability to set the redirect page to any other page other than the “location” page or the “default location” that you set. As long as the site visitor does not clear their browser cache and cookies, each time they visit your site one of the three options will be prompted according to your settings: No redirection, redirection to the location page(listings nearest to the visitor), or redirection to a default location.

    It’s a bit confusing, but once you get a strong grasp on the capabilities it gets easier to work with. 🙂

    #368812

    Kor
    Moderator
    Post count: 16516

    Hi Jotomas,

    Kindly review this section of the documentation as it explains more about the functionality. https://wpgeodirectory.com/docs/search-filters-overview/#redirect

    Hi Joy,

    Thanks for the explanation you’ve provided.

    #368815

    Joy
    Buyer
    Post count: 1076

    NP Kor. You guys have helped me out a ton, so I pitch in when I can. 🙂

    #368828

    Guust
    Moderator
    Post count: 29970

    Hi all

    If this option is selected, users will be asked if they with to be geolocated via a popup
    That is a popup that will ask exactly that.
    Which is different to the browser then asking if you want to share your location with the website, that is a browser function outside your control.

    First time load does not refer to a page, but your site. Regardless of what page they land on, the chosen redirect option will be activated.
    So geolocation works on any page, the first page visited.

    “On first time load users will be auto geolocated without being asked if they with to be geolocated via a popup and will not be redirected, that is, they will stay in the home page (which is a WordPress page, not the location or any other GD page).”

    If you do not want an automatic redirect, I suggest to add the “GD > Near Me Button widget” which allows the visitor to choose when they want to be geolocated.

    There is a difference between GeoLocation and the option in widgets called “Enable location filter”.
    Geolocation is the capacity of the browser to detect where the device (or IP address) is.
    “Enable location filter” refers to locations (cities) added to your database, and adjusts widget content depending on the location chosen by your visitors (for example, using the location switcher), regardless of their geo-location.
    Sort of similar to the difference between NEAR a particular spot in the world (your geolocation or any landmark) and IN a location, meaning a listing added to a city in your database.

    https://wpgeodirectory.com/docs/gd-search/#near

    Thanks

    #368830

    jotomas
    Buyer
    Post count: 802

    Hi all,

    Thank you very much for your explanations.

    To summarize what I understand, for geolocation to work as per your explanations and according to the documentation mentioned, the home page of a GD site (that is, the first page that a new user will usually visit on first load) must be GD Home page or a GD Location page and CAN NOT be an standard WordPress page. Am I right?

    Right now and since long time ago, I am using an standard WordPress page as the home page of my site and I have been unable to find the way to ensure that any new user visiting the site is geolocated.

    I look forward to your reply.

    Thank you very much once again for your help and patience.

    Best regards.

    #368839

    Guust
    Moderator
    Post count: 29970

    Geolocation will always redirect visitors away from the first page they visit on your site.
    It does not matter if your website homepage is not a GD page.
    Geolocation is enabled as per https://wpgeodirectory.com/docs/search-filters-overview/#redirect

    #368862

    jotomas
    Buyer
    Post count: 802

    Hi all,

    I know that it is not the first time I ask questions about this subject, as I am a GD user since almost two years ago. GD is such a huge and full of features and functionalities development, that I often discover new points of view to consider my needs and approaches to find solutions. Thanks a lot for the excitement that this versatility brings!

    Now I have a new start point to continue trying approaches to do what I want, and I am affraid I will start to have new questions.

    First ones, about this setting: “Default Near Me miles limit (1-200)”. This setting is only in mile and not in Km.? How to set distances smaller than 1? I am looking to show only places within short walking distances from geolocation. Any suggestion?

    I look forward to your reply.

    Thank you very much once again for your help.

    Best regards.

    #368959

    Guust
    Moderator
    Post count: 29970

    That setting is for the slider in the compass, and the frontend display will be in km if that is the setting at GD > General > Search tab.
    https://wpgeodirectory.com/docs/search-filters-overview/#geolocation
    https://wpgeodirectory.com/docs/gd-search/#compass

    You can use 0.5 if you like.
    But visitors can slide for a smaller or larger area too, and setting to something small means there often will be no results at all.
    Results will be shown in order of distance anyway.

    Thanks

    #371297

    jotomas
    Buyer
    Post count: 802

    Hi again,

    I wonder if there is some way to achieve this:

    I would like to setup a page with only several “Near Me” buttons, for example: “Restaurants Near Me”, “Bars Near Me”, “Hotels Near Me”, “Night Clubs Near Me”. Clicking on one of such buttons activates geolocation and show “XXXX Near Me” in order of distance.

    Until now I have found the way to have only one of such buttons, the standard “Near Me” widget, that leads to the GD Location / Home page with a GD Popular Post View Widget showing posts of an specific category.

    Is there some way to do what I am looking to achieve?

    Another question: is geolocation activated every time the “Near Me” button widget is clicked? For example, if the user is walking around the city and wants to see places around his current location, he may want to click the “Near Me” button again.

    I look forward to your reply.

    Thanks once again for your help.

    Best regards.

    #371334

    Guust
    Moderator
    Post count: 29970

    NEAR ME will always go to a page using the Location template.
    But you can put popular post widgets on the location page for multiple CPTs or categories.

    I think clicking the NEAR ME button refreshes the geolocation, but I will get Stiofan to confirm that.

    #371422

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Yes clicking the button will refresh the location.

    Stiofan

Viewing 14 posts - 1 through 14 (of 14 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket