Twitter longitude and latitude

Get the longitude and latitude of a tweets posted to Twitter.

[{"id":"374ba721.8e1078","type":"twitter in","z":"9a89a41a.b86598","twitter":"","tags":"python","user":"false","name":"twitter","topic":"tweets","x":93.5,"y":94,"wires":[["634732a5.5ff85c"]]},{"id":"634732a5.5ff85c","type":"http request","z":"9a89a41a.b86598","name":"long and lat","method":"GET","ret":"txt","url":"http://www.findlatitudeandlongitude.com/?loc={{location.place}}","x":382.5,"y":135,"wires":[["535c404f.aa92f","5b795b21.aece24"]]},{"id":"535c404f.aa92f","type":"html","z":"9a89a41a.b86598","name":"","tag":"#lat_dec span.value","ret":"text","as":"single","x":596.5,"y":92,"wires":[["484442ef.57255c"]]},{"id":"5b795b21.aece24","type":"html","z":"9a89a41a.b86598","name":"","tag":"#lon_dec span.value","ret":"text","as":"single","x":588.5,"y":197,"wires":[["785b39d4.9d6a98"]]},{"id":"d74cfea7.4d4c9","type":"debug","z":"9a89a41a.b86598","name":"","active":true,"console":"false","complete":"payload","x":1356.5,"y":42,"wires":[]},{"id":"484442ef.57255c","type":"function","z":"9a89a41a.b86598","name":"","func":"msg.newpayload = parseFloat(msg.payload);\n\nreturn msg","outputs":"1","noerr":0,"x":887.5,"y":73,"wires":[["c0111d3e.64561"]]},{"id":"785b39d4.9d6a98","type":"function","z":"9a89a41a.b86598","name":"","func":"msg.newpayload = parseFloat(msg.payload);\n\nreturn msg","outputs":1,"noerr":0,"x":867.5,"y":186,"wires":[["3d5947e3.600c78"]]},{"id":"c0111d3e.64561","type":"change","z":"9a89a41a.b86598","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"newpayload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1096.5,"y":107,"wires":[["d74cfea7.4d4c9"]]},{"id":"3d5947e3.600c78","type":"change","z":"9a89a41a.b86598","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"newpayload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1048.5,"y":190,"wires":[["5b89aa9.22cb054"]]},{"id":"5b89aa9.22cb054","type":"debug","z":"9a89a41a.b86598","name":"","active":true,"console":"false","complete":"false","x":1388.5,"y":177,"wires":[]}]
MHz-Git

Flow Info

created 1 year, 10 months ago

Node Types

Core
  • change (x2)
  • debug (x2)
  • function (x2)
  • html (x2)
  • http request (x1)
  • twitter in (x1)

Tags

  • twitter
  • longitude
  • latitude
  • maps
  • location
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option