autocomplete_query(...) func in earthtext.osm.autocomplete_query
notebook of the same name
This feature is required to autocomplete a user's query.
Why is this necessary? Generally, a user's query, e.g. "residential areas without water" is not a complete specification of the OSM state of a chip. In the above example the user does not specify the presence of highways among other things. The user's specified constraints involve only the presence of residential areas and the lack of water bodies (the latter being a negative constraint). Therefore, in order to have a fully specified "reference" for a similarity search, we need to look for all known OSM vectors in the training set that satisfy the user's constraints.
autocomplete_query(...)
func inearthtext.osm.autocomplete_query
This feature is required to autocomplete a user's query.
Why is this necessary? Generally, a user's query, e.g. "residential areas without water" is not a complete specification of the OSM state of a chip. In the above example the user does not specify the presence of highways among other things. The user's specified constraints involve only the presence of residential areas and the lack of water bodies (the latter being a negative constraint). Therefore, in order to have a fully specified "reference" for a similarity search, we need to look for all known OSM vectors in the training set that satisfy the user's constraints.