-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgradation of cities-with-1000 dependency #18
Conversation
Thanks!
|
Out of curiosity, what are you using this module for? Anything fun? |
I used this for a client of mine who wanted to have population and Geospatial data available when someone queries a radius search for all the regions close to them for weather conditions. But it can be used in much more, I believe if the module can be linked directly with geonames api / etc to always get latest data and we don't have to build multiple times. And config to adjust fields that are received. Probably have to rewrite the module in that sense but that could be something. |
That sounds interesting. This could be a good use case for the "serverless" lambda functions using something like https://functions.netlify.com |
Totally. Let's share some ideas to move this module to a serverless model. What do you think? |
I think this module can remain what it is without changes. It works well in Node.js environments. The serverless project could be a separate repo that depends on this module for data, but is designed for browser-based apps that need to make one-off requests for city data. |
Makes perfect sense. Do you want to create a repo or should I? |
Go for it. Feel free to invite me to follow along, review PRs, etc |
Hey @nabilashraf 👋🏼 I ended up publishing my See https://github.com/zeke/nearby-cities#online-usage Example query: https://nearby-cities.netlify.app/.netlify/functions/search?latitude=37.871593&longitude=-122.272743 |
This is so cool @zeke. Sorry I couldn't start earlier, can we have an option to choose the population factor, that will make this function a wholesome experience. I believe the population factor was what had been asked a lot. But anyways cheers man for this wonderful package! 🥳 |
cities-with-1000
bumped to v1.0.4