I could not get a solution for this
Dim lat,lon,tlat,tlon navigator.geolocation.getCurrentPosition(handler) tlat = lat tlon = lon Calculate(tdate,tlat,tlon) Function handler(location) lon = location.coords.longitude lat = location.coords.latitude End Function
I am not able to get lat lon here . “print lat & lon” inside function handler works . But I want lat and lon for my Calculate function .