By all means please let us know how you have managed with connecting the Address Input to the Google Maps API.
One example for what you can do with this input element is to sort a list of places by their distance from the address a visitor has entered.
We hope to have an example that demonstrates a similar use case soon, but in a nutshell you can achieve this by:
-
Creating a Data Collection that holds the information about the places. In your case you’ll have a row for each student apartment, and columns for the name of the place, its address etc.
-
Connecting a Repeater to this collection using a Dataset. Each item in the repeater will display information about a single student apartment.
-
Adding an event handler for the onChange event of AddressInput and use the value property to obtain the location of the entered address in lat/lon GEO coordinates. Then you can calculate its distance from that of each place’s location (use their value property the same way) and sort the repeater items accordingly.
Please let me know if this is detailed enough or not. As said, I hope we have an example soon.
HTH