This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support and general questions related to GEO my WP plugin and its core add-ons please use the support forum.
I am confused. Why are you trying to use the custom function for the autocomplete? You already have Wp Job manager Geolocation add-on installed. This plugin comes with the autocomplete feature built in.