Programming an iPhone App, I need to use Google Maps api to get directions and routes. Unfortunatelly, Google Maps works around javascript.
Any idea how to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can implement this by using a UIWebView. When it comes to using JavaScript to access the Google Maps service through its Google Maps APIs, you simply take advantage of the UIWebView method:
Note that you will need to escape in the string representing your script, all of the occurrences of double quotes as needed.
As an example, the following method, needed to center a map, is taken from chapter 12 of iPhone SDK programming, by Maher Ali:
Also, bear in mind the following from the Apple documentation: