我正在开发一个应用程序,它必须在“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];