「a-b」の場所の間の方向を示す必要があるアプリケーションを開発していますが、UIWebViewで必要な方向を取得できません...誰かが私を助けることができますか?
[self setDestinationLocation :@"an Address"];
[self setSourceLocation :@"53.219091,6.568096"];
int startMatch = 1;
int numberOfMatches=1;
[self setUrlAddress:
[NSString stringWithFormat:@"http://maps.google.com/maps?f=d&om=2&daddr=%@&saddr=%@&start=%d&num=%d&view=map&layer=t&t=m",
[self sourceLocation],
[self destinationLocation],
startMatch,
numberOfMatches
]
];
NSURL *url = [NSURL URLWithString:[self urlAddress]];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[[self webView] loadRequest:requestObj];