Skip to content
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

Fetch news based upon the user location #39

Open
sridharjajoo opened this issue Dec 23, 2018 · 2 comments
Open

Fetch news based upon the user location #39

sridharjajoo opened this issue Dec 23, 2018 · 2 comments

Comments

@sridharjajoo
Copy link
Owner

Currently the news is fetched only from indian source. Add the feature to fetch news based on user location.
The process to do this is quite simple. Currently the API used to fetch headlines has "in" as one of the query parameters. We need to get the present location of the user and based upon that change the query parameter.

@rob729
Copy link
Contributor

rob729 commented Jan 2, 2019

@sridharjajoo Can you help me in finding the right function to find the country code?
I tried various codes by searching on StackOverflow but in all the codes I am getting the same problem that the location is been shown null.

@sridharjajoo
Copy link
Owner Author

You can find out the current location of the user let's say India, Australia etc. Then you can create a map in which the key can be the country and value can be the country code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants