-
Notifications
You must be signed in to change notification settings - Fork 10
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
Create initial visualizations #36
Comments
Updated the description! |
A point density map of positive check-ins through Google Maps would be cool. Or maybe geo-located common words; something like this http://cdn.mashable.com/wp-content/uploads/2010/08/1.jpg but with a more local perspective. What were you thinking in terms of relationships? |
Hey Mario. I haven't seen the geo-based common words before. Interesting On Mon, Jan 20, 2014 at 8:00 PM, MarioCarloni [email protected]:
Adam Laughlin Cambridge, MA |
A heatmap could work for satisfaction. I can at least plot it in ArcGIS for now, and would learn how to implement it through an API. http://2.bp.blogspot.com/-c8SolGQPpTc/T0Mlvw5B-5I/AAAAAAAAAPA/CHxGR9MTStc/s1600/mbta_service_heat_map.png |
Sounds great! We can also iterate on it if needed. I have some experience using Google Maps' API. Okay. I don't want to block progress while working on code parts and documentation. What would you need to do a prototype heat map using fake data from the questions above? I can send you about 7 months worth of sample GPS data, with collection timestamps to aid in the location piece. |
I'll need a column of scores from -n to +n (-5 to +5 preferably) ; a |
Location data attached. What's the purpose of the -5/+5 range? Since the slider goes from 1-10, Data format-wise, how's this? Form Entry: GPS Entry: (note:many to many relationship with form entries) |
Oops. Looks like it may have not attached the location data json file to this thread. Emailed it directly to you also. |
This ticket duplicated #37. Updated the title to make this one only about the visualization. |
Plan:
|
Profit. Hahaha. Nice. :) The shapefiles are in https://github.com/DanielHadley/SomervilleBaseGrey/tree/master/layers. Using the neighborhoods files is preferable to wards/precincts. Last time I checked there are online tools for converting shapefiles to geojson. Are you okay with taking a stab at that? Adam |
done and converted. it's an ipython script so sorry if it looks weird. ipython rules, btw: https://github.com/MarioCarloni/Python/blob/master/DBF%20to%20JSON%20converter/dbftojson.ipynb pulling repo now |
Just said "Great!" on IRC right after you logged off. I'm glad you got it working! |
No dice. Tried running through git bash and git shell. I'll try again tomorrow. |
I think I may know the problem. My guess is that bower.json is requiring Adam Sent via mobile.
|
@MarioCarloni. I reinstalled my repo and am getting the same error. It isn't as simple as version. There's something weird going on with Windows and eslint. Working on it. |
@MarioCarloni. Issue fixed. #56. Pulling down master from the oms-inside repo should get you running correctly. |
I'm in. Thanks! |
Great! |
We've got a map! Check out the code too! Chrome won't allow me to make a CORS request, so I cant get the points to show up unless they're on the same domain as the map. How would you go about pulling the json over the map? |
Hey Mario, Nice map! If http://mariocarloni.github.io/ is an example of the cors request not working, it's likely because you're requesting an html file, not a json file. If you visit https://www.dropbox.com/s/sqxrg8fvdxtyeyv/neighborhoods.json, it loads an html file. Here's how to make a working link to the json file itself in dropbox. That said, why not store the json in the repo? Adam |
I had the json file stored in the github.io folder with index.html but it gave the same error. One of my previous graphs had a similar issue and the fix was to host the json file. How would I go about accessing the json from repo? |
Hmm. Googling for "gh-pages cors json error" and "gh-pages cross-domain json" turns up few relevant results. That makes me think it's something simple. Do you have an example where it's broken? |
Well, since changing to the proper dropbox link, i'm now getting the alert "geojson file loaded", which is a step ahead, but the polygons won't yet load. No errors in the console, either. |
Check in the network panel to make sure the response contains data. If so, Also, we can get on IRC or ghangout and troubleshoot together tomorrow Adam Sent via mobile.
|
Hey @MarioCarloni
Initial form thoughts:
The + buttons each add textareas when you click them, so some initial data would be:
of well-being increasing events
of well-being decreasing events
We can pull lots from just those as a start.
I'll work on building the form. Any thoughts on ways to visualize the data for self or city that would be interesting to you?
It'll be easy to create other forms, so we can branch out from the initial one. For example, another form might involve relationships. So we can see how various aspects of our internal lives vary according to the people we interact with.
The text was updated successfully, but these errors were encountered: