so that he sends the url to a http request but with the coordinates.
If u need more information or something let me know! I didnt find a solution for this problem and with my bad knowledge about programming i am done and need 2 ask for help.
msg.payload.replace() is a string function, but msg.payload[0] is an array. They both can not exist at same time. msg.payload is either a string or an array.