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
/** | |
* Created by M on 15/04/17. With ❤ | |
*/ | |
/* | |
* Reverse Geocode JS [ES7] Gist. Converts latitude/longitude to a human readable address. | |
* Firstly, tries to judge whether the lat/long is over a road. If so, returns the local street address | |
* with state and country stripped out. | |
* If not, returns the local address for the nearest point of interest. (or place). The second condition works even if | |
* the lat/long belongs to a disputed territory such as Kashmir, India. |
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
'use strict'; | |
/** | |
* Created by M on 11/04/17. With ❤ | |
*/ | |
// The Job of this server is to listen for tcp connections on port 3000 | |
// and then to transmit data coming from a tcp client to Deepstream (https://deepstream.io/) | |
// I made this gist so people could use the language of their choice for Deepstream. (Since Deepstream clients are only available for JavaScript and Java) | |
// I'm currently using Go-lang as the server side language and need to push events on Deepstream. Thus, the gist! |