department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
283 stars 204 forks source link

GIBCT Redesign: Research Walkability/Near the school Functionality #15717

Closed dneel-bah closed 3 years ago

dneel-bah commented 4 years ago

As a developer, I need to research walkability / near the school functionality that can be incorporated into the comparison tool so that the comparison tool users know what is available near the campus.

Assumptions:

  1. Near the school functionality covers things like food options, public transportation, entertainment, libraries, parking, other amenities.

Acceptance Criteria:

  1. Documentation outlining walkability / near school tools and/or APIs that can be leveraged within the comparison tool.

    Documentation includes, but is not limited to:

    • Pros / Cons
    • Pricing information
    • Is DEPO using any tools like this already that we can leverage?
    • ...

Supporting Artifacts:

  1. https://www.walkscore.com/professional/walk-score-apis.php
elder-joseph commented 4 years ago

A research effort into “walkability” to be incorporated into the comparison tool so its users have an idea about what is available near the campus/institution.

Overview

Va.gov does not currently have any information related to the nearby amenities available or leverage any API that provides such information. Adding this additional information to the comparison tool will require the development team to implement a custom component which utilizes an API that provides this information based off of locations or physical addresses. After doing some research, it appears the only “off the shelf” API available that provides such information is Walkscore.

Walkscore

Walkscore is a service that provides a relative score for a location based off of the amenities that are in close proximity to that location. Walkscore is commonly used on digital real estate listings, but its functionality seems appropriate for the information we desire regarding the nearby amenities. image.png

The “Walk score” of an area will be higher if that area includes stores, restaurants, parks, libraries, coffee shops, and similar amenities all within a reasonable walking distance. In addition to the walk score, Walkscore provides a “Transit score” and a “Bike Score” which similar to the walk score, indicating the amount of public transit available or how feasible it would be to commute or run errands using a bicycle. The Walkscore service can also provide details about the score. By utilizing the Walk Score APIs, it is possible to display these relative scores for a location, show public transit, plan travel and commutes, and gain a rough idea of what to expect when evaluating a neighborhood and comparing schools and locations.

Considerations

Walkscore offers three tiers of access, free, premium, and enterprise. The free tier is limited to 5,000 API calls per day which should be sufficient for most evaluation purposes. The premium tier has a cost starting at $100 per month and does not have an API call limit and includes access to the public transit data, travel time API and the Score Details API. The enterprise level tier does not have a cost listed, but mentions that it is the best option for high-volume sites and to email professional@walkscore.com for pricing.

When considering the UI/UX of the implementation of a custom component, it should be noted that Walkscore requires several branding requirements when displaying information retrieved from their service.

API Calls

Walkscore uses a RESTful style API where data queries are requested by submitting an HTTP GET to their endpoint (https://api.walkscore.com) with query string parameters as options to receive a response which can come back in either JSON or XML.

Here is a basic example of an API call from the Walkscore site:

Query: “1119 8th Ave S, Seattle, WA” API Call Format: https://api.walkscore.com/score?format=json& address=1119%8th%20Avenue%20Seattle%20WA%2098101&lat=47.6085& lon=-122.3295&transit=1&bike=1&wsapikey=<YOUR-WSAPIKEY> API Response Format:

{
"status": 1
, "walkscore": 98
, "description": "Walker's Paradise"
, "updated": "2016-11-17 04:40:31.218250"
, "logo_url": "https://cdn.walk.sc/images/api-logo.png"
, "more_info_icon": "https://cdn.walk.sc/images/api-more-info.gif"
, "more_info_link": "https://www.walkscore.com/how-it-works/"
, "ws_link":
"https://www.walkscore.com/score/1119-8th-Avenue-Seattle-WA-98101/lat=47.6085/lng=-122.3295/?utm_source=walkscore.com&utm_medium=ws_api&utm_campaign=ws_api"
, "help_link": "https://www.walkscore.com/how-it-works/"
, "snapped_lat": 47.6085
, "snapped_lon": -122.3295
, "transit" : {"score": 100, "description": "Rider's Paradise", "summary": "115 nearby routes: 103 bus, 6 rail, 6 other"}
, "bike" : {"score": 68, "description": "Bikeable"}
}
Full breakdown of Walk Score API Parameters:
Full breakdown of Walk Score API Results

It should be noted here that latitude and longitude are required parameters which would need to be determined for each school or institution address if we chose to use this API. I have requested an API key to further evaluate Walkscore’s free tier for use with the GI Bill Comparison Tool.

amyknox commented 4 years ago

Joe - this is great! As I was reading, each time I had a "what if" question, I read a little further and you had the answer right there. Very helpful!

You'd mentioned you were going to play around a bit with the API to see what it can do. If you're able to pull the scores into a profile page on the comparison tool, I'd definitely be interested in checking that out. As you're testing, I think it'd be safe to assume we'd be interested in the transit and bike scores in addition to the walk score - so people know how easy it is to get to and around the school.

One thing I wonder about is: Are there are similar services that offer similar functionality but without the fees &/or branding requirements?

Thank you!

desireeturner commented 3 years ago

@elder-joseph Can you add this research to this folder on GH: https://github.com/department-of-veterans-affairs/va.gov-team/tree/master/products/education-careers/school-comparison-tool/redesign/research

zurbergram commented 3 years ago

@desireeturner See https://github.com/department-of-veterans-affairs/va.gov-team/tree/master/products/education-careers/school-comparison-tool/redesign/research/walkability