Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-07-2008, 02:43 AM   #1 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 9
simsimma is on a distinguished road
Default openURL maps link specify current location????

Hello,

In my application I construct an openURL link as follows:
Code:
http://maps.google.com/daddr=37.74324,-121.43432&saddr=Current&Location
What I'm trying to accomplish is to launch Google Maps on the iPhone so that it finds directions from the Current Location to the destination latitude and longitude.

However, specifying the current location as above does not work. How can I take advantage of Google Maps's inbuilt current location finding to get these directions? Is there some special syntax I am missing?
simsimma is offline   Reply With Quote
Old 10-07-2008, 02:50 AM   #2 (permalink)
Go Dealloc yourself!
 
Join Date: Oct 2008
Location: Central California
Posts: 130
xnakx is on a distinguished road
Default

are you asking how to use the iPhones GPS/triangulation?

CoreLocation

take a look at the LocateMe sample on the apple dev site.
Jason
xnakx is offline   Reply With Quote
Old 10-07-2008, 02:56 AM   #3 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 9
simsimma is on a distinguished road
Default Not quite

Hi, thanks for the quick reply.

I know how to use Core Location.

The issue is that on the "Maps" application I can get driving directions by specifying my source address as "Current Location." Type it in to the source text field and you'll see we can get driving directions between source and destination.

I want to create an openURL link that takes advantage of that. Reason? Using coreLocation often takes 5-8 seconds to get a reasonably accurate fix. If I can hand that off to Google Maps rather than to my application, my application runs faster.
simsimma is offline   Reply With Quote
Old 10-07-2008, 08:26 AM   #4 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 211
lapse is on a distinguished road
Default

Use the &ll= parameter.
lapse is offline   Reply With Quote
Old 10-07-2008, 08:54 AM   #5 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 9
simsimma is on a distinguished road
Default

Hi, but the problem but the &ll parameter is that it only centers the map at that point. It doesn't give you the directions automatically...

Any other ideas?
simsimma is offline   Reply With Quote
Old 10-07-2008, 08:56 AM   #6 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 211
lapse is on a distinguished road
Default

Use &saddr= and &daddr= then.
lapse is offline   Reply With Quote
Old 10-23-2008, 10:58 PM   #7 (permalink)
New Member
 
Join Date: Sep 2008
Location: Ann Arbor, MI
Age: 26
Posts: 2
SlaunchaMan is on a distinguished road
Send a message via AIM to SlaunchaMan Send a message via MSN to SlaunchaMan Send a message via Yahoo to SlaunchaMan
Default

I think what he's asking is how to send a URL to the Maps application that takes advantage of the "Current Location" bookmark. I, too, would like to do this; has anyone figured out a way?
SlaunchaMan is offline   Reply With Quote
Old 12-21-2008, 01:55 PM   #8 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: Germany, Munich
Posts: 246
rhuettl is on a distinguished road
Default

I am having the same problems open the maps with a given route.

Any solutions?

Cheers
Ralf
rhuettl is offline   Reply With Quote
Old 12-21-2008, 02:42 PM   #9 (permalink)
Registered Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
smasher will become famous soon enough
Default

Quote:
Originally Posted by SlaunchaMan View Post
I think what he's asking is how to send a URL to the Maps application that takes advantage of the "Current Location" bookmark. I, too, would like to do this; has anyone figured out a way?
Can you get the current location from coreLocation, and pass that as the saddr? Does that work? This URL works for me on my phone (OS 2.2, openURL) :

Code:
http://maps.google.com/maps?daddr=37.74324,-121.43432&saddr=37.5,-121.4
(Your URL didn't have "maps?" in it.)
__________________

Free Games!
smasher is offline   Reply With Quote
Old 05-06-2010, 04:09 PM   #10 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 3
jc_sl2000 is on a distinguished road
Default

I'm trying to figure this out too, did anyone crack it?
jc_sl2000 is offline   Reply With Quote
Old 07-22-2010, 02:14 PM   #11 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 1
LambdaEnt is on a distinguished road
Default

Also need his info
LambdaEnt is offline   Reply With Quote
Old 08-06-2010, 09:43 AM   #12 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 84
sagimann is on a distinguished road
Default

same problem here... the approach of first using Core location to get the current location is not good enough, because if the location detected is not accurate enough, and you're driving by car, for example, you really need to have the maps app continue to try and get a more accurate position. So, I am, too, looking for a way to use the "current location" bookmark from a URL...


any ideas?

tnx
sagimann is offline   Reply With Quote
Reply

Bookmarks

Tags
location, maps, open url

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 308
9 members and 299 guests
Abidullah, ajay123123, Fstuff, guusleijsten, HemiMG, newDev, pkIDSF, Sami Gh, Steven.C
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,648
Threads: 94,113
Posts: 402,877
Top Poster: BrianSlick (7,990)
Welcome to our newest member, brandon6031
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:48 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0