The GeoLocation widget linked above will fallback to IP location, but default is to use the HTML5 Geolocation. As far as GPS on a tablet, a Flex web app wouldn't be able to access a Tablets resources in that fashion. If it was deployed as an AIR application, like on an Android tablet, I do believe AIR for Android can access the device GPS, but I have not tried this.