Skip Navigation

[Gelöst] Toolset Maps does allow me to add addresses but distance searches his not working

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:
I can add addresses, but I cannot search those by distance in a View.
The View itself is set up properly, and it should work.

What could be wrong?

Solution:
The API Key itself could be misconfigured.
Please follow all Documentation here (and therein linked) https://toolset.com/documentation/user-guides/display-on-google-maps/creating-a-google-maps-api-key/

You will need to enable:
- Google Maps Geocoding API
- Google Maps JavaScript API
- Google Places API

This support ticket is created vor 5 Jahren, 3 Monaten. There's a good chance that you are reading advice that it now obsolete.

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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Andreas vor 5 Jahren, 3 Monaten.

Assistiert von: Beda.

Author
Artikel
#1323355
FireShot Capture 027 - Referenzen - RAPIDOsec Mauerentfeuchtung - www.dsl-rbge.de.png

I am trying to: use toolset_maps_distance_radius but it fails

Link to a page where the issue can be seen: versteckter Link

I have activated the Maps JavaScript API.
Do I need some other APIs?

Which ones are missing for using it.

I want to implement a search for distances from a fixed ZIP-Code or a fixed place.

Best Regards

Andreas

#1323535
Bildschirmfoto 2019-08-24 um 14.36.12.png

It works for me, I searched for 1KM within Marienhagen, Deutschland, and it shows one result only, see the screenshot above

Can you elaborate on what you try to achieve and what does not work exactly as planned?
Maybe some screenshots or/and steps to replicate the issue could help me to understand it better.

Note that you cannot feed Toolset Views a ZIP code in a distance search, it will work with data defined when saving the address, though.
We have a document that you can use as a reference for this:
https://toolset.com/documentation/user-guides/display-on-google-maps/filtering-and-ordering-map-markers-by-distance/

We also have a live example, which you can actually use as a Kickstarter - it includes a distance search:
versteckter Link

You can download that framework to a local development site, for example, export the modules needed for the Address Search with Module Manager and import them to your current site after modifications, for example.
This is a very effective way of developing complex aspects, using pre-made structures that you can add style.

I see no problem in the functioning of your API so far in the search, as I receive results, hence I think with above boilerplate examples you can further develop the search if required, and see what's possible (ZIP Code search, unfortunately, is not, natively)

Please let me know if I missed something, and if you need more information about creating distance searches.

#1323547

Hi Beda, sorry we both have written the answer at the same time.

I've found now the information in some other tickets, that I do need the three APIs
Geocoding API
Maps JavaScript API
Places API

My issue is resolved now. Thank you!