Advertisement:

Author Topic: add a extra field for city, or zipcode in the radius search plugin  (Read 680 times)

xop32

  • Jr. Member
  • **
  • Posts: 77
  • trend following
I am using the radius search plugin and I want add a new extra input field to allow users to enter in a city, zipcode or postcode , and get back the latitude and longitude from google for the input



at the moment  the radius search  asks you to share your location and then gets your location details via googlemaps something like this:

https://developers.google.com/maps/documentation/javascript/examples/map-geolocation



I am trying to allow users to enter in a city name or zipcode  in a extra input field like in this example:

https://developers.google.com/maps/documentation/javascript/examples/geocoding-simple

has anyone done anything like this yet, I have looked on the forums and theres no much info on modifying the radius search plugin