Organizational Research By

Surprising Reserch Topic

how to invoke iphone maps for directions with current location as start address


how to invoke iphone maps for directions with current location as start address  using -'iphone,ios,maps'

I know it's possible to start the iPhone maps application by calling openURL on a google maps URL with parameters saddr and daddr with location strings or Lat/Long (see example below).

But I'm wondering if it's possible to make the start address be the "Current Location" maps bookmark so that I can use the Maps app's location handling code. My Google search has been pretty fruitless.

For example:

[[UIApplication sharedApplication] openURL:
    [NSURL URLWithString:
        [NSString stringWithFormat: @"http://maps.google.com/maps?saddr=%@&daddr=%@",
                                    myLatLong,
                                    latlong]]];


Except with something to invoke the current location bookmark in place of myLatLong.
    
asked Sep 29, 2015 by ukohale
0 votes
22 views



Related Hot Questions



Government Jobs Opening


...