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

Add Attributes to Parking Availability API #1494

Closed
2 tasks done
a6wu opened this issue Jul 23, 2021 · 0 comments
Closed
2 tasks done

Add Attributes to Parking Availability API #1494

a6wu opened this issue Jul 23, 2021 · 0 comments

Comments

@a6wu
Copy link
Contributor

a6wu commented Jul 23, 2021

Time Tracking: MA-84

Update the API to include the following attributes:

  • Neighborhood
  • isStructure [true, false]

Steps to complete this task:

  1. Go to the ParkingAvailabilityRouter Lambda
  2. Create NeighborhoodsMap.json in the ParkingAvailabilityRouter folder
  3. Map each parking lot to its corresponding isStructure and Neighborhood attribute found here
  4. In index.js, add const neighborhoodMapping = require('./NeighborhoodsMap.json') to the top of the file.
  5. In index.js, add code to lookup each parking lot in NeighborhoodMap.json, and insert isStructure and Neighborhood attributes to the parking API (lines 87-93 in the ParkingAvailabilityRouter Lambda function)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

4 participants