Skip Navigation

[Résolu] Distance Search Setup

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created Il y a 6 années et 2 mois. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 1 réponse, has 2 voix.

Last updated by Luo Yang Il y a 6 années et 2 mois.

Assisted by: Luo Yang.

Auteur
Publications
#615038
wp-types distance help 1.png

Hello,

First I would really like to thank you guys for developing the search by distance function for Views. What a great, and long awaited feature!

I have been looking at your Real Estate Demo site trying to figure out how you guys set it up.

I need help setting the url parameter for the radius and units. I am able to pass the url paramter for the location to the filter (from the input box) but I can't find how you guys pass the parameter for radius and units. Currently it uses a fixed radius around the user input for distance center. See attached picture.

I'm using the following code from the demo site (changed the "compare-field"):

 [wpv-control-distance compare_field="location-city" distance_center_url_param="toolset_maps_distance_center" distance_radius_url_param="toolset_maps_distance_radius" distance_unit_url_param="toolset_maps_distance_unit"]

How do I change the filter radius and units from the front end?

Thanks,
Tom

#615139

Dear Tom,

You can customize the "Distance filter" in view's "Filter Editor" section, see our document:
https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/#filtering-markers-by-distance
section "Filtering Markers by Distance"
And screenshot
hidden link

Le forum ‘Types Community Support’ est fermé à de nouveaux sujets et réponses.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.