Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By joes

Thread: Radius search not work on my website

  1. #1
    Thread Starter
    jfreiter's Avatar
    Join Date
    Oct 2013
    Location
    Switzerland
    Posts
    17
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Radius search not work on my website

    Radius search on sidebar is not working on my online server.
    but the same theme is working on my local server.


    When i have print the $wp_query in sidebar.php and compare with online and local.

    i have see that local server give app_geo_query array with lat and lng
    as below
    [app_geo_query] => Array
    (
    [lat] => 52.5200066
    [lng] => 13.404954
    [rad] => 30
    [smart_radius] => 1
    )


    but the online server is give the result as follow.

    [meta_query] => Array
    (
    [0] => Array
    (
    [key] => address
    [value] => berlin
    [compare] => LIKE
    )

    )


    By my Research i have see that vantage use the google api google geocode.

    when i have print the variable $response below this line

    $response = wp_remote_get( add_query_arg( $args, $this->api_url ) );

    in vantage\includes\geo\geocoders\google-geocoder.php file then it give me result as


    error_message" : "You have exceeded your daily request quota for this API.",
    "results" : [],
    "status" : "OVER_QUERY_LIMIT"



    but on my local server it show the result as below


    [body] => {
    "results" : [
    {
    "address_components" : [
    {
    "long_name" : "Berlin",
    "short_name" : "Berlin",
    "types" : [ "locality", "political" ]
    },
    {
    "long_name" : "Berlin",
    "short_name" : "Berlin",
    "types" : [ "administrative_area_level_1", "political" ]
    },
    {
    "long_name" : "Deutschland",
    "short_name" : "DE",
    "types" : [ "country", "political" ]
    }
    }



    What should i do to resolve this problem?


    My site url:
    http://personal-trainer-suche.de


    Here i have install another wp to print_r the results

    personal-trainer-suche.de/wordpress

  2. #2
    joes's Avatar
    Join Date
    Nov 2012
    Location
    Australia
    Posts
    877
    Thanks
    12
    Thanked 358 Times in 261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    dimitris likes this.

  3. #3
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Dimitris How does the default Search Radius in Vantage work
    By greggfranklin in forum Report Vantage Bugs (Legacy)
    Replies: 7
    Last Post: April 11th, 2016, 07:35 PM
  2. Jomark Radius Search STILL Doesn't Work
    By blue61em in forum Report JobRoller Bugs
    Replies: 1
    Last Post: January 7th, 2014, 11:09 AM
  3. Replies: 3
    Last Post: January 12th, 2011, 12:36 AM