Get the longitude and latitude of a tweets posted to Twitter.
-
-
Save MHz-Git/afee230aaa5490ca4f3b to your computer and use it in GitHub Desktop.
Twitter longitude and latitude
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"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":[]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi I don't know if I am using this flow incorrectly but I send a tweet to my account from node red and use your flow entering my ID, the tweets of specific users and my ID again to capture that tweet, all that works fine, but I get a set of coordinates 38.68551 -96.503906 that's somewhere in USA I am in the UK, any idea whats going on ?