Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS - Launch YandexMaps with directions URLScheme

Is there an URL-Scheme for launch the Yandex Maps application with directions?

I can just launch the Yandex Maps application (if already installed) with few lines of code, but I didn't found documentation about URLSchemes handled by the app:

NSURL *url = [NSURL URLWithString:@"yandexmaps://maps.yandex.ru/"];

if([[UIApplication sharedApplication] canOpenURL:url]){
    [[UIApplication sharedApplication] openURL:url];
}
like image 782
Fabio Caccamo Avatar asked Nov 29 '22 00:11

Fabio Caccamo


1 Answers

There is another Yandex cartographic app, Yandex.Navigator, that do support directions. If such a solution is acceptable for you then you can use a scheme like this one:

yandexnavi://build_route_on_map?lat_from=55.751802&lon_from=37.586684&lat_to=55.758192&lon_to=37.642817

Visit here for details.

like image 105
mkll Avatar answered Dec 04 '22 07:12

mkll