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

Use Google Correlate per US states #2

Open
pdehaye opened this issue May 1, 2016 · 5 comments
Open

Use Google Correlate per US states #2

pdehaye opened this issue May 1, 2016 · 5 comments

Comments

@pdehaye
Copy link

pdehaye commented May 1, 2016

A service from Google allows to look for search terms correlating with indices over US states. What do "SciHub downloads per habitant" correlate with, at state level?

Probably lots of junk!

@gedankenstuecke
Copy link
Owner

Would still be a fun thing to do. The only problem: One would first need to assign each US location to a state. Is there a good API/list out there one could use for that? I guess Google Maps could allow for such a thing in principle?

@pdehaye
Copy link
Author

pdehaye commented May 3, 2016

What do you have about the US location? GPS coordinates? Almost certainly the MaxMind output includes the state, no? Did you look at her published worksheet with the data?

Otherwise, Google seems to have an API for it https://developers.google.com/maps/documentation/geocoding/intro#reverse-example
but it requires a key.

There is also raw GeoJSON data for US states: http://data.okfn.org/data/core/geo-admin1-us#resource-admin1-us

@gedankenstuecke
Copy link
Owner

This is how a single entry looks like

2016-01-01 00:00:32 10.1063/1.1699273 56ed2c6436b2f United States East Lansing 42.7369792,-84.4838654

So it only gives city and country but also the coordinates, which would allow for using the Google API to figure out the state easily I guess.

@pdehaye
Copy link
Author

pdehaye commented May 3, 2016

Indeed, it shouldn't be too hard as long as Google's API is not too restrictive. The state explicitly comes out.

@gedankenstuecke
Copy link
Owner

Now only for finding the time to do this ;)

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