iOS – start Yandexmaps using the route Urlscheme

Is there a URL-Scheme for launching the Yandex map application with directions?
I can start the Yandex Maps application with a few lines of code (if installed), but I did not find documentation on URLSchemes handled by the application:

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

if([[UIApplication sharedApplication] canOpenURL:url]){
[[ UIApplication sharedApplication] openURL:url];
}

In fact, as of today this is Misleading, there is a URL scheme to get directions.

yandexmaps: // build_route_on_map / PARAMS

Example:

< pre>[[UIApplication sharedApplication] openURL:
[NSURL URLWithString:@”yandexmaps://build_route_on_map/?lat_from=59.967870&lon_from=30.242658&lat_to=59.898495&lon_to=30.299559″]];

lat_from And lon_from are optional, use the current location when they are not provided.
Don’t forget to check if the yandex.maps application is installed

NSURL *callUrl = [NSURL URLWithString:@"yandexmaps://"];

if ([[UIApplication sharedApplication] canOpenURL:callUrl])

{
//Yandex.Maps app is installed

}

Documentation(Russian)

Is there a UR Is L-Scheme used to launch the Yandex map application with routes?
I can start the Yandex Maps application with a few lines of code (if installed), but I did not find documentation on URLSchemes handled by the application:

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

if([[UIApplication sharedApplication] canOpenURL:url]){
[[ UIApplication sharedApplication] openURL:url];
)

Actually, as of today this is misleading, there is a URL scheme to get directions.

yandexmaps: // build_route_on_map / PARAMS

Example:

[[UIApplication sharedApplication] openURL:
[NSURL URLWithString:@"yandexmaps://build_route_on_map/?lat_from=59.967870&lon_from=30.242658&lat_to=59.898495&lon_to=30.299559"]];

lat_from and lon_from are optional, when they are not provided Use the current location.
Don’t forget to check if the yandex.maps application is installed

NSURL *callUrl = [NSURL URLWithString:@"yandexmaps://"];< br />
if ([[UIApplication sharedApplication] canOpenURL:callUrl])

{
//Yandex.Maps app is installed

}< /pre>

Documentation (Russian)

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3888 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.