-
Notifications
You must be signed in to change notification settings - Fork 1
Best possible data for vaccinatethestates #649
Comments
Here's a new tool which shows all of our API representations for any given location, plus the source locations and most recent report - essentially all of the possible inputs and outputs for a location: https://vial-staging.calltheshots.us/location/ldpwd |
The most useful code file to guide the next steps here is https://github.com/CAVaccineInventory/vaccinatethestates/blob/cc5737aa2f906514c298a102747c10e2b107f191/webpack/templates/siteCard.handlebars - which shows exactly which fields from the mapbox export are being used to power pages on www.vaccinatethestates.com |
Particularly relevant snippets:
And
These are populated from the Mapbox exported data by https://github.com/CAVaccineInventory/vaccinatethestates/blob/b93584af6725fd4ca1845d336d2bcc9a5f4cfdb4/webpack/site.js#L123-L143 availability() {
const appointments = !!this.properties["accepts_appointments"];
const walkins = !!this.properties["accepts_walkins"];
return {
availabilityKnown: appointments || walkins,
appointmentsAndWalkins: appointments && walkins,
appointments,
walkins,
};
}
offeredVaccines() {
const offersModerna = !!this.properties["vaccine_moderna"];
const offersPfizer = !!this.properties["vaccine_pfizer"];
const offersJJ = !!this.properties["vaccine_jj"];
return {
vaccinesKnown: offersModerna || offersPfizer || offersJJ,
offersModerna,
offersPfizer,
offersJJ,
};
} |
So the crucial details we need to get right are:
|
I'm going to populate the fields on |
(Turning this work into an issue thread to unblock myself.)
The goal here is for vaccinatethestates to get the most useful possible versions of our data for vaccine and appointment availability. This work has been scattered across multiple issues including #504 and #568 and #475.
The text was updated successfully, but these errors were encountered: