This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 8 years, 2 months ago.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Proximity search?
This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 8 years, 2 months ago.
Is it possible to build a proximity search with either a Slider or Range slider?
I have lat/long and even zip code as custom fields attached to my CPTs.
Hi,
I would suggest the Range slider for this purpuse. It uses the “BETWEEN” operator on database level – but it still does not exceeds the selected range, it is strict. So if the range is 1 – 10 and the user selects 2 and 5, then values between 2 and 5 are considered as match – there is no additional boundary.
I would probably make one range slider for the latitude, other for the longitude, but both latitude and longitude must be a separate custom field as a numeric value (no spaces, no other extra characters) – otherwise it will be recognized as a string by the MySql database.
Best,You must be logged in to reply to this topic.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |