Yes Davide, you can stop laughing. Just to make you happy, I'm calling it taxonomy :-)
The UI that triggers the lookup is most likely just a temporary hack - but I even designed and drew an icon for it... and we all know what a talented artist I am... So right now, if your dive site has a GPS fix, we show a second little button next to the location text (and the edit button) that is supposed to represent geocoding. The reason why I say that this is a temporary hack is because this happens on the dive notes pane - but this operation of course acts on the dive site, not on an individual dive. So it doesn't really belong in that spot. Once Tomaz gives us the full dive site management UI, we can migrate it over there. If you click the button we'll perform a reverse geo lookup (right now not in its own thread, another todo item) using a different service from before. Geonames.org is free, uses free data, and most excitingly has an API that allows you to look up the ocean a fix is in. That seemed extremely useful to me. I need to figure out how to contribute to the free data that they use so we can fill some of the gaps that their data have (for example Hood Canal is missing - a place where I dive frequently). But overall in my testing I was quite pleased with the results that I got. Once the dive site taxonomy has been looked up it is shown in the UI as "tags" (there it is again) next to the label of the Location field. I think the way I've done this is not too intrusive and still useful, but I'm happy to hear from the UI experts how this could be done better. What else is new: in the preferences you can now pick the actual categories you want to see and you need to enable geocoding for this to work (privacy issue - so default is no... but I'm willing to consider changing this to default to yes if people think that's reasonable). BTW: if you set this before (why? it didn't do anything) you need to do this again as the data structures and settings variables have changed. And of course all this is saved and loaded back from both XML and git / cloud storage. Please test and let me know what you think. I am sure I managed to hide a handfull of creative bugs in all this. Dailies are being built as we speak. /D _______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
