Open tahini opened 2 months ago
In what case do we need something like administrative_area_level_5 ?
In what case do we need something like administrative_area_level_5 ?
These are part of the Google API and represent place types. The invalidGeocodingResultTypes
means that if results that come back from Google are of this type, then they should not be taken to represent the place because they are too imprecise, I'm not sure what administrative_area_level_5
represents, but for instance, the city of Sherbrooke is of type locality
, so if the query returned this result, even if it returns a single point, this point is not located is a precise enough place to be considered valid geolocation.
I'm not sure if we can integrate any widget-specific validations in the global process of validating an interview, but there is some code that should be used in most inputMapFindPlace widgets: