simple code for calling google location api