Giter Site home page Giter Site logo

Format geo URI as clickable about messages HOT 2 OPEN

Raffael7777 avatar Raffael7777 commented on July 23, 2024 1
Format geo URI as clickable

from messages.

Comments (2)

Raffael7777 avatar Raffael7777 commented on July 23, 2024 3

There are numerous automation apps that have access to GPS coordinate values that can automatically respond to texts with that data if set up to. However, the sending phone don't know which map app the receiving phone might have access to, so formatting it as a proprietary URL scheme is a gamble. For example, on an Android phone with Google maps disabled or not installed at all, clicking a Google maps URL in an SMS will attempt to open the URL in the browser window, the OS does not attempt to recognize the intent and pass it to another map app, which might not even be able to understand the Google maps URL if the developer hasn't planned for that use case. I assume Google maps would likewise ignore a URL formatted for OSM, or Organic maps.

Organic maps, Osmand~, Google maps, and likely more third party maps, correctly open geo URI coordinates when clicking a formatted hyperlink (<a href="geo:...">Link</a>) on a webpage. It's an established permanent URI scheme (like tel, mailto, https, ftp) and as far as I can tell universally understood and supported by all Android map apps (but not by Apple maps). I'm not suggesting all URIs need to be clickable, but because location data is frequently sent via SMS, I think it makes sense to format it so it is clickable.

from messages.

Aga-C avatar Aga-C commented on July 23, 2024

Does any map app share location only as geo URIs, so this function would be needed? From what I've checked, map apps always send normal URLs when using the share option.

from messages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.