osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.65k stars 1.02k forks source link

Format phone number #20551

Open luigifab opened 2 months ago

luigifab commented 2 months ago

Describe the idea (required)

Please format phone number of POIs with https://github.com/google/libphonenumber when we displaying more details about a POI, or when we are editing details of a POI.

Tell us about the expected behaviour (required)

When a POI has the following phone number +33612345678 (or with space anywhere) display it like that : +33 6 12 34 56 78

When a POI in France has the following phone number 0612345678 (or with space anywhere) display it like that : +33 6 12 34 56 78

....

Then you can also display if the number is a GSM or not.

Tell us about alternatives you've considered (required)

None

Context (optional)

No response

luigifab commented 2 weeks ago

The hidden idea, is also to display the number type: fixed or mobile.

Another idea is to display if the mobile number support RCS messages, but this (probably) require network, and another library.