Working on geolocation in PhoneGap