Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to use google direction api in ios?
    primarykey
    data
    text
    <p>I am new in iOS, I want to use the google api direction services, i got the java script on google documentation, i also know how to run the simple java script in iOS using UIWebView, but still am unable to run the script given on google on following link : <a href="https://developers.google.com/maps/documentation/javascript/directions#TransitInformation" rel="nofollow">https://developers.google.com/maps/documentation/javascript/directions#TransitInformation</a></p> <p>I dont need to use MapView, I want to access the information only.</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" var directionsDisplay; var directionsService = new google.maps.DirectionsService(); var map; function initialize() { directionsDisplay = new google.maps.DirectionsRenderer(); var chicago = new google.maps.LatLng(41.850033, -87.6500523); var mapOptions = { zoom:7, mapTypeId: google.maps.MapTypeId.ROADMAP, center: chicago } map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions); directionsDisplay.setMap(map); directionsDisplay.setPanel(document.getElementById("directionsPanel")); }; var root = function(diameter) { var start = document.getElementById("start").value; var end = document.getElementById("end").value; var request = { origin:start, destination:end, travelMode: google.maps.TravelMode.DRIVING }; directionsService.route(request, function(response, status) { if (status == google.maps.DirectionsStatus.OK) { directionsDisplay.setDirections(response); } }); return 100; }; &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>for testing i am just returning some value, but it is not giving me output, the function is called, but hangs somewhere in code</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload