Hi,
After posting a request here, I'm happy to share my new geo field input template as a gift to the Cobalt community
https://s3.amazonaws.com/adwsfiles/zip/2013-10/geocomplete.zip
It uses the jQuery Geocoding and Places Autocomplete Plugin which you can find here: http://ubilabs.github.io/geocomplete/
Bear in mind that I am not a programmer and that it has been customized to my needs. I also commented out some code which I didn't need. There is no map display here neither.
Examples
After clicking on Show full address
Instructions
Copy/extract the zip file to /components/com_cobalt/fields/geo/tmpl/input (I have included the normal and minified versions of geocomplete.js)
Select the geocomplete template in the geo field settings
Done!
Issues/improvements
There are some issues though which I couldn't solve
The Google API and the geocomplete.js are included with each geo field. If you have multiple geo fields it still works but the API and js will be called multiple times, which according to Google might give some unpredictable results.
I would like to have a "Detect my location button" but I don't know if that's possible.
If you wish to improve the code, just add your modified files here and share it with us.
Best regards,
Jeff
Hi,
After posting a request here, I'm happy to share my new geo field input template as a gift to the Cobalt community
https://s3.amazonaws.com/adwsfiles/zip/2013-10/geocomplete.zip
It uses the jQuery Geocoding and Places Autocomplete Plugin which you can find here: http://ubilabs.github.io/geocomplete/
Bear in mind that I am not a programmer and that it has been customized to my needs. I also commented out some code which I didn't need. There is no map display here neither.
Examples
After clicking on Show full address
Instructions
Copy/extract the zip file to /components/com_cobalt/fields/geo/tmpl/input (I have included the normal and minified versions of geocomplete.js)
Select the geocomplete template in the geo field settings
Done!
Issues/improvements
There are some issues though which I couldn't solve
The Google API and the geocomplete.js are included with each geo field. If you have multiple geo fields it still works but the API and js will be called multiple times, which according to Google might give some unpredictable results.
I would like to have a "Detect my location button" but I don't know if that's possible.
If you wish to improve the code, just add your modified files here and share it with us.
Best regards,
Jeff