getting gps coordinates dynamically