Geocode was not successful for the following reason: ZERO_RESULTS

This topic contains 12 replies, has 4 voices, and was last updated by  Stiofan O’Connor 8 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #332243

    tmfsupport
    Expired Member
    Post count: 13

    Geocode was not successful for the following reason: ZERO_RESULTS

    I get this error when I click “Set Address On Map” on the add-listing screen for various locations if I don’t use a zip code. I started with only two locations: San Diego & Los Angeles California.

    For instance these gave me the error:
    Portland, Oregon
    Beaverton, Oregon
    Las Vegas, Nevada
    New York, Iowa (even with a zip code)

    These did not:
    Reno, Nevada
    Jacksonville, Florida
    Riverside, California
    New York, New York

    If I add a zip code, (or move the map slightly which usually adds the zip) the problem cities seem to work. I manually added Las Vegas, NV as a location in the back end, but it still gives the error on the add-listing page.

    It doesn’t seem to matter if I use the location search in the address field, or if I just put in the city in the address, and type in the region and city.

    I have disabled the location manager, set the default city to a different city, back to the original city, then reenabled the location manager plugin. No change.

    I have cleared geolocation settings in my browser.

    FYI, I have some scripts and CSS under GD/Design/Scripts that modify this page, but the problem exists without any of this.

    All of the credentials and the add-listing url can be found in this forum request:
    https://wpgeodirectory.com/support/topic/google-maps-api-request-denied/

    Thanks for your help.
    Cory

    #332461

    Guust
    Moderator
    Post count: 29970

    I alerted Stiofan again since he has looked at it already. Please add comments about the same issue to the same topic in future, then the right staff members will be automatically alerted.
    Thanks

    #332638

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Can you give me the exact details you have set when clicking the button?

    Stiofan

    #333055

    tmfsupport
    Expired Member
    Post count: 13

    Thanks Guust and Stiofan.

    I filled in Address (with a city), city, region, country. No zip usually unless specified. Also title and description. Address might not be able to have a full address, because that might auto fill a zip code.

    It seems to mostly be when there is no zip code on only some cities, but as I mentioned I found one city where the zip code doesn’t matter. Type in New York, Iowa

    Thanks.

    #333828

    tmfsupport
    Expired Member
    Post count: 13

    Hey guys, any further questions on this for me? Would you like me to record a screencast showing the issue?
    Thanks,
    Cory

    #333831

    Paolo
    Site Admin
    Post count: 31211

    Hi Cory,

    the developers are looking into it and will let you know asap.

    It seems like we can’t recreate on our servers, so it could take a bit longer to fix.

    I think they will answer after the week end for sure.

    Thankss for your patience and happy new year

    #335278

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Yes, i still need to know what EXACTLY you are inputting, i am not sure if you are inputting it into the single address or also filling out the city/region fields. A video or screen shot would help.

    Stiofan

    #335350

    tmfsupport
    Expired Member
    Post count: 13
    This reply has been marked as private.
    #335378

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Thanks for the info, i have made a small change, can you check things now.

    Thanks,

    Stiofan

    #335407

    tmfsupport
    Expired Member
    Post count: 13

    Ok, thanks. Here’s what I see:

    Portland, OR – OK
    Beaverton, OR – OK
    Las Vegas, NV – OK
    New York, IA – error
    New Brunswick, NJ – error
    Vancouver, WA – OK
    Vancouver, BC, CA – OK
    and a bunch of other cities I tried were ok.

    So it’s better because Las Vegas for one was erroring when I made that video.

    While the underlying problem is being fixed, is there a way to disable the error popup? In most cases it seems to set the map properly anyway, and even if the error were to trigger, I don’t want my users to ever see it.

    Thanks,
    Cory

    #335415

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    For the New York example what is sent to the Google API is “New York,New York,Iowa,United States,50238” and for some reason that is not found, you can try entering that into the Google geolocate demo: https://developers.google.com/maps/documentation/javascript/examples/geocoding-simple

    There is no easy way to disable that message.

    Stiofan

    #335565

    tmfsupport
    Expired Member
    Post count: 13

    Ok, I see. All those errors are coming from google.

    What change did you make? Is it something that will be overwritten when I upgrade or set this up on another site?

    I found this online as an easy way to redirect alerts to the console and it works fine in chrome:

    
    
    // Redirect javascript alerts to console
    window.alert = function ( text ) { console.log( 'Alert: ' + text ); return true; };

    Thanks for your help.
    Cory

    #335750

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Cory,

    No the changes will be in the next release.

    Thanks,

    Stiofan

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount