manuelbieh / geolib

Zero dependency library to provide some basic geo functions
MIT License
4.23k stars 341 forks source link

geolib object is empty within Meteor server code? #75

Closed PhoenixWright closed 8 years ago

PhoenixWright commented 8 years ago

cc'ing @dandv

This could be a big misunderstanding on my part - I am still pretty new to Meteor. I am running Meteor 1.2 and have added geolib to my project via meteor add. I can successfully access a global geolib object in my client code, but I was hoping to use it on my server with some large sets of location data - is that possible? I've tried using it in multiple ways - inside the Meteor.startup hook, inside of Meteor.methods, and geolib always shows up as an empty object {}.

Let me know if I should try anything in particular or import it in any special way, or if it simply isn't possible!

PhoenixWright commented 8 years ago

I apologize, I was misunderstanding the debug output I was seeing. Turns out the object was accessible the whole time, but the project's version is on 2.0.15 via Atmosphere so the API I was trying to use was not available.