OruxMaps

Uncategorized Boards => MEJORAS/NEW FEATURES => Topic started by: Ede_123 on July 10, 2020, 02:26:51 AM

Title: Clickable links for website / mail / phone / etc. fields in POIs
Post by: Ede_123 on July 10, 2020, 02:26:51 AM
Maps from OpenAndroMaps (http://"https://www.openandromaps.org/") ship with nicely curated lists of POIs these days and OruxMaps gained functionality to look them up easily by clicking in the map (see attachement).

Unfortunately the POIs are a lot less useful then they could be as

It would be great if clicking / copying of items from the POIs would be made possible!
Title: Re: Clickable links for website / mail / phone / etc. fields in POIs
Post by: Juanjo on July 10, 2020, 05:22:28 PM
+1

I already requested almost the same thing here (https://oruxmaps.org/forum/index.php?topic=32654.0), and, in the latest version, it is partially implemented for phone numbers. It would be nice if it worked also with email addresses, websites, ...

@orux

The mapsforge POI API (https://github.com/mapsforge/mapsforge/blob/master/docs/POI.md) states the following:

QuoteThe PoiPersistenceManager object is used for querying the POIs in various ways. The query returns a collection of PointOfInterest objects. These are containers that contain a POI's position, ID, category and additional data. Additional data are stored as a string and can be arbitrary. There is no specification for the encoding of those data. The current implementation stores the POI's tags as an UTF-8 encoded string in the data field.

I understand that the fact that all the OSM tags are contained in one field (additional data) is making things more complicated here, but, in the POI database, there is a line feed at the end of each. It can be used to create an array of OSM tags/values by splitting the field on the line separator, then each tag/value couple can be further splitted on the equal sign to  separate them. From there a different logic can be applied to each tag.

in addition to the OSM tags that I already mentioned on the other thread I would like to add 'contact:facebook' and 'contact:whatsapp' to the list.

Finally, and somehow unrelated to this, I think that it would be better to align to the left those values on the popup, when there are a lot of them, they currently look somehow messy. Also alphabetically sorted would be better.