google maps - Step-by-Step navigation by using GPS in iOS sdk -
I need a step by step navigation using GPS with Google Maps and how to get it.
You need a Google API service and when you start If you place the destination and call the API with the following, then provide the full route path
http://maps.google.com/maps/api/directions/json?sensor=true& ; Original = 23.027439,72.52309 9 and destination = 23.029108,72.507570 Here my starting point is original = 23.027439,72.523089 and destintaion destination = 23.029108,72.507570
So now Google will provide the following data
{"route": [{"border": {"NE:": {"lat": 23.0296906, "lng": 72.5234184}, "south west": {"Lat": 23.026354, "lng": 72.50715599999999}}, "Copyright": "Map Data A © 2014 Google", "Legs": [{"Distance": {"text": "2.2 km", "value ": 2249}," Duration ": {" Text ":" 5 Minute "," Value ": 325}," End-Address ":" Sarkhej-Gandhinagar Highway, Satellite, Ahmedabad, Gujarat 380 054, India "," End_location ": {" lat ": 23.0290924," LNG "": 72.5076297}, "start_address": "38, Indus Park, Satellite, Ahmedabad, Gujarat 380015, India", "Start_space": {"Lat": 23.027439, "lng": 72.5230894}, "step": [distance ": {" text ":" 68 m "," value ": 68}," duration ": {" text ":" 1 Min "," value ": 24}," end_location ": {" lat ": 23.0269233," lng ": 72.5227287}," html_instructions ":" head \ u003cb \ u003esouthwest \ u003c / b \ u003e side \ u003cb \ u003e Satellite "," polyline "," polyline ": {" points ":" oppkCitsyLXPJFh {"distance": {"text": "85 m", "" "" "" "," start_space " Lat ": 23.027439," lng ": 72.5230894}," travel_mode ":" driving "}, {" distance "value": 85}, "duration": "1 min" "Value": 30}, "end_space": {"lat": 23.0265039, "lng": 72.5234184}, "html_instructions": "Turn \ u003cb \ u003eleft \ u003c / b \ u003e at \ u003cb \ u 003e Satellite Red \ U003c / b \ u003e \ u003cdiv style = \ "font-size: 0.9 mm \" \ u003e palanquin \ u003c / div \ u003e "," maneuver "by Hanuman temple (on left):" turn-left "," transport_ mode " ":" Driving "}, {" Points ": {" Points ":" gmpkCarsyLVa @ @ @ PC @ FM "}," Start_space ": {" lat ": 23.0269233," lng ": 72.5227287}," / Code > You must understand the documentation to use Google Direction Services. This is a link.
Here is a simple argument that you can use later.
What do you have to do to keep the dictionaries in the array in the array and then try to bring it one by one, update the current wave long for the location, check the location method and if Your current location is near the merger of the end point of the phase disposition and if you can alert the message of html_instructions, then the price indicator which direction the user will have to go forward and forward. Raise your index Hne array dictionary and a final index of similar steps.
Feel free to ask if any help is needed.
Comments
Post a Comment