Investigar si existe una API de geocodificación abierta y gratuita para esto, pero simplificaría enormemente el proceso de instalación de Gladys:
Edición: Me parece que esta API (https://geocode.maps.co/ ) hace el trabajo sin clave de API:
https://geocode.maps.co/search?q=66%20avenue%20des%20champs%20%C3%A9lys%C3%A9es%2075008%20Paris
La utilizo para importar datos históricos de Tesla. Pero hay una clave API: Openroute service
Sin una clave de API, no vamos a pedirle al usuario que ingrese una clave de API mientras está instalando Gladys
Estoy usando geocode en uno de mis proyectos web, funciona bastante bien, pero como todos los servicios con direcciones postales, a veces no están actualizados rápidamente (cambios en el catastro, etc.).
Por eso, en mi caso, uso Geocode + un mapa para definir una dirección lo mejor posible.
Sí, lo imaginaba ^^
Pensaba más bien en una clave API genérica al principio ^^
Pero también existe la versión On-Premise, el paquete es bastante ligero solo para la localización. (HeiGIT Account )
Por cierto, Teslamate utiliza OpenStreetMap
Así que tu tema me dio una idea loca:
« Gladys prepara todo para el trayecto de las 06:30 hacia el trabajo con Tahití. Tengo que pasar por la panadería habitual en el camino »:
05:30 café
06:00 baño caliente
06:30 coche caliente y ruta en el tablero del coche (la mejor ruta a la hora será elegida por el coche) integrando la parada en la panadería.
El servicio oficial de OpenStreetMap es Nominatim, que es gratuito y no requiere clave API.
Lo he integrado rápidamente, aquí tienes algunas imágenes:
Si sigues interesado, puedo generar una imagen para probar
Haré el PR esta noche con una imagen de prueba.
Aquí está la PR
master ← William-De71:features/house-address-search
ouvert 06:10PM - 13 Jul 26 UTC
Pull Request check-list
To ensure your Pull Request can be accepted as fast a… s possible, make sure to review and check all of these items:
- [ ] If your changes affect the code, did you write the tests?
- [x] Are server tests passing with coverage? (cd server && npm run coverage) — Codecov requires 100% coverage on lines changed in this PR (front-end only change, no server code touched)
- [ ] Did Cypress E2E tests pass? (npm run cypress:run from repo root, if UI changed)
- [ ] Is the linter passing? (npm run eslint on both front/server)
- [ ] Did you run prettier? (npm run prettier on both front/server)
- [x] If you are adding a new feature/service, did you run the integration comparator? (npm run compare-translations on front) (translations added in en/fr/de)
- [x] Did you test this pull request in real life? With real devices?
- [x] If your changes modify the API (REST or Node.js), did you modify the API documentation? (no API change)
- [ ] If you are adding a new features/services which needs explanation, did you modify the user documentation?
- [x] Did you add fake requests data for the demo mode (front/src/config/demo.js)? (not needed: Nominatim is called directly from the browser, no Gladys backend request involved)
Description of change
Currently, setting the home address requires manually panning/zooming the map and clicking on the exact location, which is tedious — especially on the world-level default view during signup.
This PR adds a text search field above the map to find the home address by typing it:
- The typed address is geocoded with Nominatim (the OpenStreetMap geocoding service): free, no API key required.
- Up to 5 results are displayed; clicking one centers the map on the selected address.
- The map stays clickable to fine-tune the position afterwards.
- The search is only triggered on an explicit user action (button click or Enter key), to comply with the Nominatim usage policy (max 1 request/second — no search-as-you-type).
- Available in both places where the house location is set:
- House settings (Settings → House)
- Signup, house configuration step
- Error and "no results" states are handled with dedicated translated messages (en/fr/de).
No backend change: the Nominatim API is called directly from the browser.
[Screenshots:](https://community.gladysassistant.com/t/pouvoir-taper-ladresse-de-sa-maison-au-lieu-de-selectionner-sur-la-carte/9450)
## Summary by CodeRabbit
* **New Features**
* Added an address search to the house configuration flow.
* Users can search for an address, select a result, and automatically update/center the map pin.
* Added loading, error, and no-results feedback for address lookup.
* Added English, German, and French translations for the new address search UI.
* **Bug Fixes**
* Improved map behavior so the marker and view update only when coordinates actually change, including improved dark-mode handling.
* Updated the sign-up E2E test to fill the correct room inputs.
La imagen está en construcción: docker pull willde71/gladys-test:house_adress_search
Cierro este post porque la función está disponible en Gladys Assistant 4.86:
Salut à tous !
Super heureux de sortir Gladys Assistant 4.86.
C’est simple, c’est la plus grosse version depuis le début du projet, avec 68 PR fusionnées en une semaine
C’est juste incroyable, et ça montre le nouveau rythme qu’on peut tenir avec l’IA.
L’objectif est maintenant clair : rattraper et dépasser Home Assistant
Je vous parle de ces 68 nouveautés ici :
Merci à tous les contributeurs !!