Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

smsawant

macrumors newbie
Original poster
May 7, 2009
8
0
when i send email which contain destination address when user will click on that address he should get directions from his current location to destination address on google maps.

i tried to do using following code

**http://maps.google.com/maps?daddr=DestinationAddress&saddr=current+location&view=map&z=12"**

but current location word does not worked.
how can we find user's current location in iphone by using only html and google map.
can we pass any parameter to google map so it can track user's current location.
any one have any idea?

kinldy help me.
 
thanks for your reply.

we can find current location in iphone by including corellocation framework in our application.

but i dont know how to find current location using html. i.e when destination address is given on the html page.

i think to find current location using html is possible because if iphone has GPS and we can find location using google map.
 
thanks for your reply.

we can find current location in iphone by including corellocation framework in our application.

but i dont know how to find current location using html. i.e when destination address is given on the html page.

i think to find current location using html is possible because if iphone has GPS and we can find location using google map.

Ok, let me rephrase. When using HTML you don't have access to the GPS chip in the device to tell it to gather the current location.
 
OWhen using HTML you don't have access to the GPS chip in the device to tell it to gather the current location.
Not so sure about that. According to the "What's New in iPhone OS 3.0" guide, "Safari also supports the Geolocation JavaScript classes, which work with the onboard location services to retrieve the current location of the device." So, you might be able to use those services as well with your own UIWebView.
 
Not so sure about that. According to the "What's New in iPhone OS 3.0" guide, "Safari also supports the Geolocation JavaScript classes, which work with the onboard location services to retrieve the current location of the device." So, you might be able to use those services as well with your own UIWebView.

Indeed. Safari now supports javascript objects for obtaining the current location of the device and for getting repeated updates of the location.

However, for this, I think you're going to want to insert your latitude and longitude instead of "current+location". For example, CoreLocation can report you as being as 51.4777 latitude, 0.0000 longitude. If you googlemap 51.4777, 0 you will see your location.
 
Not so sure about that. According to the "What's New in iPhone OS 3.0" guide, "Safari also supports the Geolocation JavaScript classes, which work with the onboard location services to retrieve the current location of the device." So, you might be able to use those services as well with your own UIWebView.

Javascript != HTML
 
Thanks All of you for your timely help.
Information that you have provided was really helpful for me.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.