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];
}
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)