this is a plugin for phonegap that get location and if changed send it to server