Google Maps API

This topic contains 15 replies, has 3 voices, and was last updated by  Alex Rollin 4 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #509967

    mb299
    Free User
    Post count: 147

    Hello..
    I am using WP Ver :5.2.3 & GD Ver :2.0.0.66

    Its a listing website using Supreme Directory theme. The plugins that i am using are Geo Directory, Ninja Forms, Code Snippets & Ultimate Member.

    I activated both the Maps Javascript & GeoCoding API’s . But when i use the API keys in GeoDirectory, my search function gives an error in both the Fields – “Search” & “Near” on the frontpage. The error is – Search was not successful for the following reason :REQUEST_DENIED.

    Just for your information, I have restricted both the API Keys.
    Can you please advise? Have i activated the right Key _Maps Javascipt API? Please suggest
    Thanks

    #509992

    Kor
    Moderator
    Post count: 16516

    Hi mb299,

    The geocoding error means that your Google Maps API keys might not be set up correctly. Could you please and see if you’ve set up billing correctly on your Google Maps API key? https://developers.google.com/maps/documentation/javascript/get-api-key

    #510009

    mb299
    Free User
    Post count: 147

    Hi Kor,

    Yes, I had double checked before writing in to you and the billing address is perfect as maps are working on my other website with a different API key ofcourse.

    Infact, when I go to “Add Listing” page, it gives the Request Denied error for Geocode.

    When I go to Google API Console, there are many API’s. I just hope that I have chosen the right API. Could you advise on that too please?
    Thanks/ Manish

    #510019

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    When you check your GD settings there are 2 Maps API keys (one under the advanced options).

    the second API key in the GD settings is for GeoCoding and it should not have any http referrer restriction rules on it. As it shows in the screenshot, if your first key has any restrictions, you should make a second key.

    That second key is what is used on the add listing page to check addresses.

    #510034

    mb299
    Free User
    Post count: 147

    All right Alex,

    I will generate a new Geocoding key without restriction and use.

    Thanks

    #510340

    mb299
    Free User
    Post count: 147

    Hi Alex,
    Am using a new API key now as suggested but the error is same.

    Please see the screenshot.

    Also the submission I made in my initial post
    “But when i use the API keys in GeoDirectory, my search function gives an error in both the Fields – “Search” & “Near” on the frontpage. The error is – Search was not successful for the following reason :REQUEST_DENIED.” – the error still exists.

    #510470

    Alex Rollin
    Moderator
    Post count: 27815

    Please share a link and WP Admin credentials so we can check it out.

    Thanks

    #510483

    mb299
    Free User
    Post count: 147
    This reply has been marked as private.
    #510630

    Alex Rollin
    Moderator
    Post count: 27815

    The error shown on the add listing page is

    
    
    
    Geocoding Service: This API key is not authorized to use this service or API.  For more information on authentication and Google Maps JavaScript API services please see:
    

    You can use the buttons next to the API to create a key that should have all the necessary APIs added and enabled.

    Did you make sure you added the Javascript API key to the list of APIs that the key can access on the API key restrictions page?

    #510649

    mb299
    Free User
    Post count: 147
    This reply has been marked as private.
    #510663

    mb299
    Free User
    Post count: 147

    Hi Alex,

    When the default location is set to a city (Gurugram, in my case), the Geocoding on Add Listing page accepts listings from default city only.

    Whereas,my requirement is any city of India, at the moment. How do i achieve this? How to set default location as country rather than city?

    How are the default listings (that came with the theme & plugin) were added from all over USA?

    Appreciate your immediate help on this. Thanks

    #510673

    Kor
    Moderator
    Post count: 16516

    Hi mb299,

    Thanks for your reply. If you do not have the Location Manager installed, kindly refer to this section of the documentation https://wpgeodirectory.com/docs-v2/addons/location-manager/#default-location .

    #510676

    mb299
    Free User
    Post count: 147

    Thanks Kor.
    So that means, without Location Manager, it would only work within ONE City, which defeats the purpose of a listing website. There would be 10% people who would want to work within their default locations but majority of them would want to work in different cities, if not countries. And for India, it doesn’t work. We need to go all over the country.

    Is there an alternative to it? Awaiting your reply. The location manager is priced at $39 for a year & am not sure how would you be accepting payments from India?

    Need to think about it.

    Regards / Manish

    #510720

    Alex Rollin
    Moderator
    Post count: 27815

    The free addon is for building a directory for one city. To add listings outside the default location you will need the Location manager addon. Try the checkout to see the payments we support.

    #510773

    mb299
    Free User
    Post count: 147
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 16 total)

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

Open Support Ticket