Page 1 of 1

Passing user location to Google Map API

Posted: Wed May 23, 2012 5:59 pm
by apptest4498177

I’m trying to pass user’s device location to Google Map API.

Using Tiggzi’s Geolocation Device I get user’s latitude and longitude as two separate parameters.

Google Map API requires the location Request parameter to be in the format of address or textual latitude/longitude value.
For example -33.8670522,151.1957362.

What’s the best way to convert the two parameters I get into this format?

Thank you!


Passing user location to Google Map API

Posted: Wed May 23, 2012 6:14 pm
by maxkatz

Something like this:

code
var result = lat+','+lon;
/code