Job Listing Form - Radius Search

By: Joshua T | Asked: 10/18/2024
ForumsCategory: Code HelpJob Listing Form - Radius Search
Joshua T asked 2 months ago
Hello! I have a form for a job listing on my site, and a view set up for our recruiting team to use to manage job applications that come through. One feature we would love to implement in our view is the option to search by a specified radius around a zip code and have all applications within that radius populate in the search.  I have installed and configured the Google Maps API in my forms & set up address autocompleting for when an applicant is entering their address, so all entries in the form have a zip code listed. I’m wondering if anyone has achieved a similar result before and if so, if anyone has any tips or suggestions to point me in the right direction for getting a feature like this implemented? Thank you so much!!
1 Answers
Rob LeVineRob LeVine answered 2 months ago
I don't know that the Google Maps API will give you what you want. Its "nearby" feature will not give you a list of zip codes, which is what you need. I suggest trying something like https://www.zipcodeapi.com/API#radius. Once you have a list of nearby zip codes you can find associated entries.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right