Created
April 10, 2017 05:05
-
-
Save kidchenko/ea66d75945b1a2173273282e07247de2 to your computer and use it in GitHub Desktop.
Remaps for MongoDB
This file contains hidden or 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
// #geoJson #bot #localization #doordinates | |
var remap = function(e) { | |
if (e.LATITUDEGOOGLE) { | |
e.geoJson = { type: 'Point', name: e['Nome do Estabelecimento'], coordinates: [ e.LONGITUDEGOOGLE, e.LATITUDEGOOGLE ]}; | |
db.estabSus.save(e); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment