Skip to content

Sanitize parking lot data #21

Description

@KartikTalwar

Transfer parking lot data from v1 and make it more readable and parseable.

Cases

  • Visitor parking is available evenings at 3:45pm
  • There is currently no evening or weekend parking available
  • Visitor parking is available all day/evening
  • Visitor parking is available evenings and weekends
  • Evening and weekend parking for visitors is available until 10:00 pm each night
  • Lot X is open and free from 4:30 pm Friday until 6:00 am Monday.
  • Visitor parking $2.00 per hour, daily maximum of $15.00 Evenings after 5:00 pm
  • Contractor permit parking only
  • Only between the hours of 6:00 am - 6:00 pm.
  • No overnight parking from 3:00 - 6:00 am

Response (needs work)

{
  "name" : "A",
  "latitude": 43.474847,
  "longitude" : -80.5446,
  "available_weekends" : true,
  "available_evenings" : true,
  "available_daytime" : true,
  "is_currently_open" : true,
  "current_visitor_cost" : 5,
  "type" : ["Faculty", "Staff", "Visitor", "Contractor"],
  "not_open" : [
    {
      "days" : ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
      "time_start" : "03:00",
      "time_end" : "06:00"
    }
  ],
  "note" : "Permits are sold to faculty and staff if space is available"
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions