Skip Navigation

[Resolved] results not showing on map search

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 5 replies, has 1 voice.

Last updated by TimR4704 1 week, 1 day ago.

Assisted by: Minesh.

Author
Posts
#2817931

> Tell us what you are trying to do?

We have a simple map search:
hidden link

That performs a text search on the name of a town or city e.g. London and shows results of anyone with that town or city in their address entry.

This has worked fine for some time.

Whilst many results show as expected e.g.
Search 'Liverpool', and amongst those results is Anne Hilder, and her detail page loads the map as expected:
hidden link

More recent entries we've created are not showing up in the map search e.g. try searching 'Bodmin' – there are no results.
and their detail page is showing no location (it's centring off the west coast of Africa)
hidden link

Can you see why this might be? We are creating new entries the same way as older ones.
We can create WP access for you if needed.

Thanks
Tim

#2818032

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share admin access details and let me check what's going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2818074

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

When I checked on the map's settings page - I can see the google map API key is showing error:
- hidden link

REQUEST_DENIED - API keys with referer restrictions cannot be used with this API.

Can you please created unrestricted map api key.

#2818083

Yes I can try this – where do you see the message? Can you screenshot? I'm on there now and can't see one including in the console.

#2818089

OK, I found it.
I've used a new API key, but it seems you're not able to restrict by domain for this use - is that correct?
I tried restricting by IP of the web server but that didn't work.
How else can I safely restrict the API's usage and have new entries correctly display on the map?

#2818218

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

It's on google. We do not manage the Google Map API keys. Maybe you will need to allow some time to propogate the restricted API key.

Here is the related doc:
- https://toolset.com/course-lesson/creating-a-maps-api-key/#creating-an-api-key-for-google-maps

Please read this:

To protect your API key from unauthorized usage and charges, it’s important to add domain restrictions to it. By setting restrictions, you can specify the websites that are allowed to use your API key, preventing unauthorized access from other sites. You can set these restrictions in the Google settings for your API key.

And please check this:
- https://toolset.com/course-lesson/creating-a-maps-api-key/#problems-with-displaying-markers-on-google-maps

#2818445

Thanks. I think the new API key and waiting for it to propagate is what was needed. Seems to be working fine now.