Store Locator Plus for WordPress Forums Premier Support Still not finding locations

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #59046
    Catherine
    Participant

    I have posted this problem before but I am hoping that a resolution has finally be found.

    I have the map centred to Victoria Australia.

    But when I search, for example, Laverton – nothing comes up – as the map diverts to Laverton WA. However, if I search Laverton VIC, it returns a result.

    This is clearly not a problem on Google maps so I don’t understand why it is a problem with this tool. Can someone help?

    Attachments:
    You must be logged in to view attached files.
    #59058
    Cici
    Keymaster

    First, we need to see your Plugin environment .  Neither of those screenshots provides any info for us to be able to assist you better. A screenshot of your SLP plugin environment is better.

     

    There was a patch to fix the defaulting search region to US.   I cant see your back end nor your web site to see if your region is being populated correctly. I.e If you selected Australia as your region map.

     

    Second:

    As explained in various news feeds and documentation.  the Google commercial MAPS algorithms is NOT the same as the Google MAPS APIS they offer for third party and/or self managed use of their MAPS APIS.  See HOW search works (it explains and offers suggestions

    They won’t flat out tell you this but they DO misdirect all the time.

    Also Google commercial maps “listens” in and keeps a history of your location, where you have searched before and they still do not always get it right.

    The MYSLP fully managed service as an alternative to WPSLP uses different algorithms to search a  geodataset before querying Google API  and often returns better results because we do not rely on Google but fix lat. long real time. Without getting too technical, please review the following articles and docs.

    MYSLP better accuracy

    location accuracy

    Google MAPS API and location

     

    If you are not using the latest version of WPSLP then update.

    #59059
    Cici
    Keymaster

    P.S. Since you are a Premier customer, are you using anything available to you that wil help your site visitors, such as Google guesses or auto fill ?

    https://docs.storelocatorplus.com/blog/show-address-guess/

     

    https://docs.storelocatorplus.com/blog/how-to-show-address-suggestion/

     

    #59060
    Catherine
    Participant

    Thanks, here is my SLP environment. And I have added auto fill.

     

    • This reply was modified 8 months, 2 weeks ago by Catherine.
    Attachments:
    You must be logged in to view attached files.
    #59071
    Cici
    Keymaster

    Hi Catherine,

    Your site is showing the referred page as this: http://learnlocal.org.au/find-a-learn-local/

    which isnot secure. When the site was developed was it migrated from http to https? Was the Google MAPS API updated?

    Using any Browser inspect the site : errors are being shown.

    Uncaught SyntaxError: Unexpected token <

    3(index):1 Access to XMLHttpRequest at ‘https://www.learnlocal.org.au/wp-admin/admin-ajax.php&#8217; (redirected from ‘http://learnlocal.org.au/wp-admin/admin-ajax.php&#8217;) from origin ‘http://learnlocal.org.au&#8217; has been blocked by CORS policy: Request header field x-requested-with is not allowed by Access-Control-Allow-Headers in preflight response.

    VM319:1 GET https://learnlocal.org.au/wp-json/store-locator-plus/v2/geocode/d3b9421df4791d1ba132a4a9a16984d9/au/3002 400 (Bad Request)

    (anonymous) @ VM319:1

    send @ jquery.js:4

    ajax @ jquery.js:4

    n.(anonymous function) @ jquery.js:4

    getJSON @ jquery.js:4

    geocode @ slp_core.min.js:1

    doGeocode @ slp_core.min.js:1

    searchLocations @ slp_core.min.js:1

    onsubmit @ (index):511

    example

    using the Browser tool and inspecting network parameters when performing a search, it appears you have not set up your google APIs correctly

      1. Request URL:
      2. Request Method:
        GET
      3. Status Code:
        400 Bad Request
      4. Remote Address:
        192.163.248.118:443
      5. Referrer Policy:
        no-referrer-when-downgrade
    1. Request Headers

     

    #59072
    Cici
    Keymaster

    The redirect is being shown above and is broken (http to https)

    About the google API here are some FYI tips:

    Lance published a few articles for customers to assist them with the referrer and setting up the APIs

    https://www.storelocatorplus.com/api-keys-with-referer-restrictions-cannot-be-used/

     

    https://www.storelocatorplus.com/wordpress-store-locator-plus-google-api-key/

     

    #59074
    Cici
    Keymaster

    Additional info If you click on the link above with the  get response:

    "code":"rest_invalid_param","message":"Invalid parameter(s): apikey","data":{"status":400,"params":{"apikey":"Invalid parameter."}}}
    
    There are a few articles about the REST set up as well.  I am not sure if I am even looking on the correct page anymore, if you still need assistance could you provide the exact url where you are having the issue?  I checked an old email that you sent and the url on that one seems to be working correctly. Sorry for the confusion if I am looking at the wrong site. This is why we ask for URL as well as plugin environment. 
    
    Hope all is working out for you
    
    
    • This reply was modified 8 months, 1 week ago by Cici.
    #59090
    Catherine
    Participant

    thanks for your help

    #59111
    Cici
    Keymaster

    no problem

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.