Giter Club home page Giter Club logo

Comments (9)

vshcherb avatar vshcherb commented on July 23, 2024 1

URLS to be added to documentation:

  1. https://osmand.net/map/?pin=52.491143,7.116394#9/52.3924/6.3116 (with pin)
  2. https://osmand.net/map/#9/52.3924/6.3116 (without pin)
  3. Navigation https://osmand.net/map/?start=52.236210,5.119629&finish=52.412472,4.855957&profile=car&pin=52.491143,7.116394#9/52.3873/5.2570

from web.

vshcherb avatar vshcherb commented on July 23, 2024 1

Yep if you skip start it should work as well (Android was tested). We will retest

from web.

vshcherb avatar vshcherb commented on July 23, 2024

Now we aim to support https://osmand.net/map/#5/50.000/5.000 this scheme i.e. everything is doable on the site to cross link later to the app.

from web.

vshcherb avatar vshcherb commented on July 23, 2024

But indeed we need to update documentation.

from web.

apbarratt avatar apbarratt commented on July 23, 2024

That sounds good, similar to how google maps links work and allow us to provide it easily as an option with the same link regardless of whether the app itself is installed.
I don't suppose you know of anywhere the url scheme is laid out for that, even if it isn't a pretty documentation page yet :)
Also, I suppose a mailing list that might flag breaking changes to the scheme for me to subscribe to would be useful too if one exists :)

from web.

kevinp2 avatar kevinp2 commented on July 23, 2024

I am able to get this link to work successfully on iOS through Safari. I display a web page with an OSMAnd hyperlink and the OSMAnd iOS app displays the area around the coordinate:

https://osmand.net/go.html?lat=35.188872&lon=-114.527308

I have not tried this on Android.

My app that constructs the web page has access to the OSM node / way / relation IDs. It would be fantastic to have an URL that looked like this:

https://osmand.net/go.html?osmtype=node&id=123456

... where osmtype would be one of node, relation or way

This would enable a specific business or POI to be targeted precisely.

from web.

kevinp2 avatar kevinp2 commented on July 23, 2024

URLS to be added to documentation:

...

  1. Navigation https://osmand.net/map/?start=52.236210,5.119629&finish=52.412472,4.855957&profile=car&pin=52.491143,7.116394#9/52.3873/5.2570

Hi @vshcherb, on the Navigation link, is there a way to specify "Current Location" instead of an explicit Start location?

from web.

apbarratt avatar apbarratt commented on July 23, 2024

Thanks for these guys. Could I ask if there is also a method to specify a query string for address lookup when we don't have coordinates to hand though? We regularly use coordinates but more often than not, the user submitted content is simply an address which we need to pass through and hope the app in question has semi-decent geo-coding.
One day we may do some geocoding ourselves before hand, but in the immediate future, we're just relying on what apps can handle the addresses we pass through :)

I suppose for your navigation link example, we'd be hoping for something like this:
Navigation https://osmand.net/map/?finishq=Bute%20House%2C%205%20Charlotte%20Square%2C%20Edinburgh%2C%20EH2%204DR&profile=car

Also, I suspect this is a silly question as I'm sure I've seen this before but have forgotten about it, but what is a pin in this situation?

from web.

vshcherb avatar vshcherb commented on July 23, 2024

Our geocoding is not perfect... and I'm afraid the url we dont have yet for search so it will be a separate issue

from web.

Related Issues (15)

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.