Is your feature request related to a problem? Please describe.
Every device needs latitude and longitude typed in by hand before it appears on the map. On an install with hundreds of devices that is the single largest barrier to adopting the plugin, and it is why so many of the support threads here end at "no devices are showing" (#9, #13).
The settings page already has a gpsmap_geoloc option and region() already resolves each hostname, but nothing turns an address or a public IP into coordinates.
Describe the solution you'd like
Fill in coordinates for devices that have none:
- Geocode a free-text address entered on the device edit form.
- For devices with a public IP, offer IP-based geolocation as a rough starting point, clearly marked as approximate.
- Cache every lookup in the database. Geocoding services are rate limited and the answer does not change between poll cycles.
- Never overwrite coordinates an operator entered by hand.
Pair it with a bulk action on the device list so an existing install can be populated in one pass rather than device by device.
Describe alternatives you've considered
Importing coordinates from a CSV. Simpler to build, but it moves the work rather than removing it.
Additional context
Provider choice matters here. Nominatim has no API key but a strict usage policy that requires caching and a real User-Agent. That pairs naturally with the OSM/Leaflet work in #8, so the two are worth sequencing together.
Is your feature request related to a problem? Please describe.
Every device needs latitude and longitude typed in by hand before it appears on the map. On an install with hundreds of devices that is the single largest barrier to adopting the plugin, and it is why so many of the support threads here end at "no devices are showing" (#9, #13).
The settings page already has a
gpsmap_geolocoption andregion()already resolves each hostname, but nothing turns an address or a public IP into coordinates.Describe the solution you'd like
Fill in coordinates for devices that have none:
Pair it with a bulk action on the device list so an existing install can be populated in one pass rather than device by device.
Describe alternatives you've considered
Importing coordinates from a CSV. Simpler to build, but it moves the work rather than removing it.
Additional context
Provider choice matters here. Nominatim has no API key but a strict usage policy that requires caching and a real User-Agent. That pairs naturally with the OSM/Leaflet work in #8, so the two are worth sequencing together.