Skip to content

Backend: generate buildings within a path range #1141

@l-duong05

Description

@l-duong05

Feature

Develop a function that, given two building ID's, will create a line segment between the buildings.
Return a list of all buildings that are within X meters of the line segment (including the buildings themselves)

Example Format

Parameters:

  • Start Building ID
  • End Building ID
  • Max Offset Distance

Return:

  • List of Building ID's

Example Diagram

Image

Start Building is Tyree Energy Technology
End Building is Morven Brown Building
Max Offset is the distance in Green

The line segment between the buildings is in Red.
The box in Blue includes all of the buildings within the requirements.

In this case, the valid buildings would be:

  • Tyree Energy Technology
  • Newton Building
  • Science Theatre
  • Quadrangle Building
  • Morven Brown Building

Acceptance criteria

Base Use

  • Input: 2 Building ID's, varying distances
  • Output: A list of building ID's within the requirements (regardless of if there are available rooms)

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions