Skip to content

Commit

Permalink
Merge pull request #3406 from ProjectSidewalk/3237-api-widget
Browse files Browse the repository at this point in the history
Added dropdown links to download API calls from the API page.
  • Loading branch information
misaugstad authored Oct 25, 2023
2 parents 35d5115 + 7cebe66 commit 3914b8e
Show file tree
Hide file tree
Showing 5 changed files with 186 additions and 131 deletions.
2 changes: 1 addition & 1 deletion app/controllers/ProjectSidewalkAPIController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ class ProjectSidewalkAPIController @Inject()(implicit val env: Environment[User,
val minLng: Double = min(lng1.getOrElse(cityMapParams.lng1), lng2.getOrElse(cityMapParams.lng2))
val maxLng: Double = max(lng1.getOrElse(cityMapParams.lng1), lng2.getOrElse(cityMapParams.lng2))

val streetAccessScores: List[AccessScoreStreet] = getAccessScoreStreetsGeneric(minLat, maxLat, minLng, maxLng, version = 2)
val streetAccessScores: List[AccessScoreStreet] = getAccessScoreStreetsGeneric(minLat, minLng, maxLat, maxLng, version = 2)
// In CSV format.
if (filetype.isDefined && filetype.get == "csv") {
val file = new java.io.File("access_score_streets.csv")
Expand Down
Loading

0 comments on commit 3914b8e

Please sign in to comment.