Search and navigate intent for google maps #5

Merged
sriramsv merged 1 commits from maps into master 2022-08-28 07:34:32 -04:00
sriramsv commented 2022-08-27 20:59:15 -04:00 (Migrated from github.com)

It might be useful to only run this for text which resembles a location. However, it can currently run for any text input in the search bar

If AIO launcher has something like google ML kit entity extraction, it would be awesome to get context on the data and invoke certain scripts in the search bar.

ML Kit Entity Extraction

It might be useful to only run this for text which resembles a location. However, it can currently run for any text input in the search bar If AIO launcher has something like google ML kit entity extraction, it would be awesome to get context on the data and invoke certain scripts in the search bar. [ML Kit Entity Extraction](https://github.com/googlesamples/mlkit/tree/master/android/entityextraction)
zobnin commented 2022-08-28 01:00:26 -04:00 (Migrated from github.com)

A good idea would be to use prefixes. For example, you can print the result only when the string starts with the word "navigate" or "nav". This will allow the user to type "navigate paris" and only then get the result. The same can be done with your QR and Share scripts. Otherwise now if you turn them all on, the search results will be constantly cluttered with meaningless results.

If you're not sure how to do it right I can modify your scripts myself.

Also, try to end script names with their type if possible. In this case it is better to make the name equal to "maps-navigate-search.lua".

A good idea would be to use prefixes. For example, you can print the result only when the string starts with the word "navigate" or "nav". This will allow the user to type "navigate paris" and only then get the result. The same can be done with your QR and Share scripts. Otherwise now if you turn them all on, the search results will be constantly cluttered with meaningless results. If you're not sure how to do it right I can modify your scripts myself. Also, try to end script names with their type if possible. In this case it is better to make the name equal to "maps-navigate-search.lua".
zobnin commented 2022-08-28 07:34:24 -04:00 (Migrated from github.com)

Nevermind. I came up with a more elegant solution for prefixes :)

Nevermind. I came up with a more elegant solution for prefixes :)
Sign in to join this conversation.
No description provided.