hackoregon / teamHomelessness-frontend

2016-2017 Homelessness Project Team - frontend code-staging site
http://hacko-homelessness-staging.s3-website-us-west-2.amazonaws.com/
MIT License
1 stars 10 forks source link

Hook up Women card to API #60

Open outerpress opened 7 years ago

outerpress commented 7 years ago

http://homelessness.civicpdx.org/migration

clemf commented 7 years ago

So, after looking at the API for gender data, it looks like the only data point from the women card that we can currently get is the percent of women by year. This would be done by adding up the total count from /gender and calculating the percent based off of the gender property.

The domestic violence and disability endpoints do not have a gender property, so I see no way of calculating that value.

We also need to display which year's data we are using for the women card.

@Zak-Kent Is it possible to get more query strings on the endpoints? For instance, can we query by gender on the gender endpoint?

Zak-Kent commented 7 years ago

Hey @clemf, we can add an option to query the gender endpoint by gender for sure (also let me or Mark know if there are others). I'll try to hook up with Mark this week and see if he wants to take a crack at it, otherwise I can add it before the weekend.

outerpress commented 7 years ago

https://docs.google.com/spreadsheets/d/1x16Iu4i2reu-cnnBDo_6qUtYkvaiIs7noYjotzAm78Q/edit#gid=1489031976

@clemf Take a look at the POCvsGeneral tab. That gives us the percentages for quite a few of the data points, including Domestic Violence. This might be a good basis for Mark to start structuring the API.