implementing writegpsservice