Google Maps API
This topic contains 15 replies, has 3 voices, and was last updated by Alex Rollin 5 years, 1 month ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: google maps api
-
AuthorPosts
-
September 24, 2019 at 12:28 pm #509967
Hello..
I am using WP Ver :5.2.3 & GD Ver :2.0.0.66Its 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
ThanksSeptember 24, 2019 at 1:58 pm #509992Hi 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
September 24, 2019 at 3:34 pm #510009Hi 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/ ManishSeptember 24, 2019 at 4:43 pm #510019Hello,
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.
September 24, 2019 at 5:42 pm #510034All right Alex,
I will generate a new Geocoding key without restriction and use.
Thanks
September 26, 2019 at 12:49 pm #510340Hi 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.September 26, 2019 at 11:39 pm #510470Please share a link and WP Admin credentials so we can check it out.
Thanks
September 27, 2019 at 1:04 am #510483This reply has been marked as private.September 27, 2019 at 10:01 pm #510630The 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?
September 27, 2019 at 11:26 pm #510649This reply has been marked as private.September 28, 2019 at 8:23 am #510663Hi 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
September 28, 2019 at 11:14 am #510673Hi 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 .
September 28, 2019 at 11:38 am #510676Thanks 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
September 29, 2019 at 9:07 am #510720The 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.
September 29, 2019 at 7:57 pm #510773This reply has been marked as private. -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket