Title: Map address returns error: REQUEST_DENIED
Last modified: December 29, 2016

---

# Map address returns error: REQUEST_DENIED

 *  Resolved [rightmind](https://wordpress.org/support/users/rightmind/)
 * (@rightmind)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/map-address-returns-error-request_denied/)
 * 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.
 * [http://rightmindpsychology.com.au/location/](http://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](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/map-address-returns-error-request_denied/#post-8598787)
 * 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](https://developers.google.com/maps/documentation/javascript/)
   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](https://wordpress.org/support/users/rightmind/)
 * (@rightmind)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/map-address-returns-error-request_denied/#post-8599467)
 * 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](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à:
 * [http://rightmindpsychology.com.au/location/](http://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.
 *  [thomasburke777](https://wordpress.org/support/users/thomasburke777/)
 * (@thomasburke777)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/map-address-returns-error-request_denied/#post-8673332)
 * 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](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/map-address-returns-error-request_denied/#post-8676131)
 * [@thomasburke777](https://wordpress.org/support/users/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
 *  [thomasburke777](https://wordpress.org/support/users/thomasburke777/)
 * (@thomasburke777)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/map-address-returns-error-request_denied/#post-8676984)
 * 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.

 * ![](https://ps.w.org/wp-flexible-map/assets/icon-256x256.png?rev=2590627)
 * [Flexible Map](https://wordpress.org/plugins/wp-flexible-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-flexible-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-flexible-map/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-flexible-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-flexible-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-flexible-map/reviews/)

## Tags

 * [Flexible Map](https://wordpress.org/support/topic-tag/flexible-map/)

 * 5 replies
 * 3 participants
 * Last reply from: [thomasburke777](https://wordpress.org/support/users/thomasburke777/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/map-address-returns-error-request_denied/#post-8676984)
 * Status: resolved