apptest4498177
Posts: 0
Joined: Wed May 23, 2012 3:59 pm

Passing user location to Google Map API

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!

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Passing user location to Google Map API

Something like this:

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

Return to “Issues”