The dwd app contains a ‘dump’ of location names with gps coordinates (in json format read from file in /usr/share/harbour-dwd/qml/pages/LocationSearchPage.qml). These are read and ‘filtered’ when you do a search term (or via gps_coords). The database storage is done when you click on one of the filtered selections.
In /LocationSearchPage.qml look for:
onClicked: {
Store.addLocation(model);
which uses the javascript
In /usr/share/harbour-dwd/qml/js/storage.js
function addLocation(locationData)
In this case, directly after storing, the pageStack is popped in you return to the ‘main’ page which now has a new entry to read / show…
I could have simply created a db with those locations, but I wasn’t certain how stable the list (obtained from the DWD) is, so I stuck to the json I can fetch from them.