Added function that takes in coords and sends them to pubnub