Open zeljkovukovic opened 7 years ago
Related to #2456 ?
I don't think so. From what I understand that one is about not being able to read the link at all. This is about choosing which part of the link to treat as the destination. The link contains 3 points: start, destination and center. OsmAnd takes the last one and ignores the first two.
On Sep 25, 2016 6:27 PM, "Unnamed-1" notifications@github.com wrote:
Related to #2456 https://github.com/osmandapp/Osmand/issues/2456 ?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/osmandapp/Osmand/issues/3122#issuecomment-249431159, or mute the thread https://github.com/notifications/unsubscribe-auth/AFc7V4LF6H89Sd8iG02SKgavOyPZhcYHks5qtqD2gaJpZM4KF7_C .
Currently, when OsmAnd opens a route link copied from OpenStreetMaps, eg.
https://www.openstreetmap.org/directions?engine=osrm_car&route=45.2573%2C19.8407%3B45.2378%2C19.8345#map=15/45.2474/19.8376
it sets the OSM screen center point as the destination for OsmAnd route. Instead, it should recognize that the link is a route and set it to the destination point (in this case 45.2378, 19.8345).
Same goes for GoogleMaps. The link
https://www.google.rs/maps/dir/Vuka+Karad%C5%BEi%C4%87a,+Novi+Sad/Narodnog+fronta+45,+Novi+Sad+21102/@45.2513173,19.8319146,2839m/data=!3m2!1e3!4b1!4m13!4m12!1m5!1m1!1s0x475b105d20f8701f:0x32dd6c07e3c4fded!2m2!1d19.8412511!2d45.2591651!1m5!1m1!1s0x475b101744b36d65:0xe967f16b4002c8bb!2m2!1d19.8360529!2d45.2397981?hl=en
is opened as the screen center. Instead, it should decode as
Starting point "Vuka+Karad%C5%BEi%C4%87a,+Novi+Sad" Destination point "Narodnog+fronta+45,+Novi+Sad+21102"