Skip to content

Latest commit

 

History

History
executable file
·
17 lines (11 loc) · 815 Bytes

File metadata and controls

executable file
·
17 lines (11 loc) · 815 Bytes

HTML Input with Region-Based Autocomplete

Description

A simple HTML script that integrates Google Places Autocomplete into an input field, forcing users to select their location from suggestions. The input field is styled for a better user experience and restricted to regions within Germany, Switzerland, and Austria. The goal of the application in combination with a survey is to prevent typos and errors from users.

Features

  • Autocomplete functionality for city names.
  • Input validation to ensure a place is selected from the suggestions.
  • Custom styling for the input field.
  • Specific geo-restrictions to Germany, Switzerland, and Austria

Installation of Application

  1. Replace API_KEY with your actual Google Maps API key.
  2. Save the code as an HTML file and use it within your survey.