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

Turn GPS coords into Names of Cities #52

Open
youralien opened this issue Jul 23, 2018 · 3 comments
Open

Turn GPS coords into Names of Cities #52

youralien opened this issue Jul 23, 2018 · 3 comments

Comments

@youralien
Copy link
Member

youralien commented Jul 23, 2018

affordanceaware is already giving us city names through the Weather API. Although "Dexter, US" is not really all that helpful. "Dexter, MI, US" would be more helpful.

'pressure': 993.1, 'sea_level': 1026.16, 'grnd_level': 993.1, 'humidity': 42, 'temp_kf': 0}, 'weather': [{'id': 500, 'main': 'Rain', 'description': 'light rain', 'icon': '10n'}], 'clouds': {'all': 76}, 'wind': {'speed': 3.56, 'deg': 93.0067}, 'rain': {'3h': 0.07}, 'sys': {'pod': 'n'}, 'dt_txt': '2018-08-01 00:00:00'}, {'dt': 1533092400, 'main': {'temp': 294.387, 'temp_min': 294.387, 'temp_max': 294.387, 'pressure': 993.11, 'sea_level': 1026.03, 'grnd_level': 993.11, 'humidity': 55, 'temp_kf': 0}, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01n'}], 'clouds': {'all': 0}, 'wind': {'speed': 3.02, 'deg': 125}, 'rain': {}, 'sys': {'pod': 'n'}, 'dt_txt': '2018-08-01 03:00:00'}, {'dt': 1533103200, 'main': {'temp': 290.214, 'temp_min': 290.214, 'temp_max': 290.214, 'pressure': 991.97, 'sea_level': 1024.93, 'grnd_level': 991.97, 'humidity': 81, 'temp_kf': 0}, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02n'}], 'clouds': {'all': 24}, 'wind': {'speed': 0.65, 'deg': 148.002}, 'rain': {}, 'sys': {'pod': 'n'}, 'dt_txt': '2018-08-01 06:00:00'}, {'dt': 1533114000, 'main': {'temp': 288.559, 'temp_min': 288.559, 'temp_max': 288.559, 'pressure': 991.54, 'sea_level': 1024.75, 'grnd_level': 991.54, 'humidity': 83, 'temp_kf': 0}, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01n'}], 'clouds': {'all': 0}, 'wind': {'speed': 1.3, 'deg': 234.005}, 'rain': {}, 'sys': {'pod': 'n'}, 'dt_txt': '2018-08-01 09:00:00'}, {'dt': 1533124800, 'main': {'temp': 291.467, 'temp_min': 291.467, 'temp_max': 291.467, 'pressure': 991.28, 'sea_level': 1024.46, 'grnd_level': 991.28, 'humidity': 78, 'temp_kf': 0}, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'clouds': {'all': 0}, 'wind': {'speed': 1.81, 'deg': 250.508}, 'rain': {}, 'sys': {'pod': 'd'}, 'dt_txt': '2018-08-01 12:00:00'}, {'dt': 1533135600, 'main': {'temp': 299.573, 'temp_min': 299.573, 'temp_max': 299.573, 'pressure': 991.28, 'sea_level': 1024.12, 'grnd_level': 991.28, 'humidity': 55, 'temp_kf': 0}, 'weather': [{'id': 800, 'main': 'Clear', 'description': 'clear sky', 'icon': '01d'}], 'clouds': {'all': 0}, 'wind': {'speed': 3.22, 'deg': 291.504}, 'rain': {}, 'sys': {'pod': 'd'}, 'dt_txt': '2018-08-01 15:00:00'}, {'dt': 1533146400, 'main': {'temp': 302.461, 'temp_min': 302.461, 'temp_max': 302.461, 'pressure': 990.39, 'sea_level': 1023.1, 'grnd_level': 990.39, 'humidity': 40, 'temp_kf': 0}, 'weather': [{'id': 801, 'main': 'Clouds', 'description': 'few clouds', 'icon': '02d'}], 'clouds': {'all': 12}, 'wind': {'speed': 5, 'deg': 298.504}, 'rain': {}, 'sys': {'pod': 'd'}, 'dt_txt': '2018-08-01 18:00:00'}, {'dt': 1533157200, 'main': {'temp': 302.447, 'temp_min': 302.447, 'temp_max': 302.447, 'pressure': 989.7, 'sea_level': 1022.34, 'grnd_level': 989.7, 'humidity': 34, 'temp_kf': 0}, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'clouds': {'all': 76}, 'wind': {'speed': 5.36, 'deg': 269.007}, 'rain': {}, 'sys': {'pod': 'd'}, 'dt_txt': '2018-08-01 21:00:00'}], 'city': {'id': 4990797, 'name': 'Dexter', 'coord': {'lat': 42.3384, 'lon': -83.8886}, 'country': 'US', 'population': 4067}}}
@kapil1garg
Copy link
Contributor

There don't seem to be any recently maintained Meteor packages, but this Node package looks pretty good (and its completely offline): https://www.npmjs.com/package/local-reverse-geocoder

@youralien
Copy link
Member Author

Looked into the package on Saturday, and it requires a lot of disk and memory requirements, which probably will not work well for a heroku instance. We would be better off using Google's Reverse Geocoder API

@youralien
Copy link
Member Author

Emphasizing Place Geolocation Information is enacting a new mechanism in the interaction, where highlighting just the situational/affordance based similarities is one step towards this. From an argument point of view, we want to be careful of implementing this feature to distinguish this situation-based app vs location-based apps.

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

No branches or pull requests

2 participants