• Resolved rightmind

    (@rightmind)


    Hi – I’ve been using Flexible Map for about 12 months without issue but now when I open the location page with the map I receive a pop-up page error “Map address returns error: REQUEST_DENIED”. Clicking the ‘Okay’ button removes the pop-up and there is no map shown. I’m using Flexible Map version 1.12.1, which I think is the latest.

    https://rightmindpsychology.com.au/location/

    This code has served me well:
    [flexiblemap address="Kingscliff Professional Centre, 38-42 Pearl Street, Kingscliff NSW Australia" width="100%" region="au" title="Right Mind Psychology" zoom=16 scrollwheel="true"]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author webaware

    (@webaware)

    G’day rightmind,

    I tested the above and got a different error: ZERO_RESULTS

    Your error sounds like you need to add a Google Maps API key. Get an API Key from Google and add it to:

    Settings > Flexible Map

    However, it looks like the Google Maps API for looking up addresses can’t find your location at present. When I plug that address into Google Maps on the web, the building it finds has the address 36 on Google Maps, not 38-42, so that’s probably why it’s failing through the API. You can report that problem to Google Maps and they should be able to fix it for you.

    In the meantime, you can get your map working again by either:

    * using the address 36 Pearl Street; or
    * adding coordinates to the shortcode so it doesn’t have to do an address lookup

    I reckon your coordinates are -28.256142,153.574858 so this shortcode ought to work for you (but you might need to add that API key now).

    [flexiblemap address="Kingscliff Professional Centre, 38-42 Pearl Street, Kingscliff NSW Australia" width="100%" region="au" title="Right Mind Psychology" zoom=16 scrollwheel="true" center="-28.256142,153.574858"]

    cheers,
    Ross

    Thread Starter rightmind

    (@rightmind)

    Thanks Ross

    I plugged in the API Key generated by Google Maps in Settings > Flexible Map and got this error: ‘Map address returns error: ZERO_RESULTS’, closer to what you got. So then I modified the code to centre at the latitude and longitude you specified and found myself in the middle of a shopping centre across the road. No error now but wrong address.

    If I search ‘Right Mind Psychology’ in Google Maps, it takes me to the correct address:

    https://www.google.com.au/maps/place/Right+Mind+Psychology/@-28.2550213,153.5721533,17z/data=!3m1!4b1!4m5!3m4!1s0x6b90ff5c1ca09c01:0xa91b11632e94482b!8m2!3d-28.255026!4d153.574342

    I noticed in that link the latitude and longitude are ever so slightly different to yours, so I plugged these in and voilà:

    https://rightmindpsychology.com.au/location/

    So, I’m not sure whether it was the API key, centring at a specified latitude and longitude, or both that did the trick. Still doesn’t explain why all of a sudden it stopped working after a year. In any case, thanks for heading me in the correct direction. WordPress is a complete mystery to me so I am grateful for the forums and helpful guides.

    Peter.

    I have upgraded the plugin and entered the google api into it, as
    instructed, but I am still getting the error message. I have also
    placed the code, as instructed, into a post.

    It was working fine for two years.

    Also, when I type my address into google maps, it doesn’t recognize it. It the
    past it did and I was registered with google, but it isn’t working at all any more.

    Not sure what to do.

    Plugin Author webaware

    (@webaware)

    @thomasburke777 please start a new topic for your problem, as per forum guidelines.

    When you do, please provide a link to the page with your map on it so that I can look at it.

    cheers,
    Ross

    Hi, the page is tomburke.co

    Thanks,

    Thomas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Map address returns error: REQUEST_DENIED’ is closed to new replies.