Add grounding with Maps #8
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces an "Ingredient-to-Store Localizer" feature to the grocery list screen, allowing users to find nearby stores stocking their unchecked ingredients using Gemini model grounding with Google Maps. The reviewer feedback focuses on improving internationalization (i18n) and clean architecture by refactoring the UI state and ViewModel to use Android string resource IDs instead of hardcoded English error strings.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
This PR adds grounding with Maps via Firebase AI Logic to the Android Friendly Meals app. Now, in the Grocery List Screen, the user can tap the Maps icon in the top right corner to search for nearby stores that sell the ingredients noted on the user's grocery list. We then display a bottom sheet with a list of stores, and a few important information about each store: name, distance from current location, if it's open now and closes soon, and what the parking situation is. When the user taps on a store, they're taken to that specific store in the Google Maps app.