Skip to content

Commit

Permalink
parking-offstreet-sta: use new endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Feb 26, 2024
1 parent ed46299 commit 7b131b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions data-collectors/parking-offstreet-sta/calls.http
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ grant_type=password
@token = {{login.response.body.access_token}}

### GetFacilities
GET https://www.onecenter.info/api/DAZ/GetFacilities
GET https://online.onecenter.info/api/Facility/GetFacilities
Authorization: Bearer {{token}}

### FacilityID
# 607440 Bressanone
# 608612 Bolzano
GET https://www.onecenter.info/api/DAZ/FacilityFreePlaces
GET https://online.onecenter.info/api/Facility/GetFreePlaces
?FacilityID=607440
Authorization: Bearer {{login.response.body.access_token}}
4 changes: 2 additions & 2 deletions data-collectors/parking-offstreet-sta/src/dc/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ type FreePlace struct {
Longitude float64
}

const facilityUrl = "https://www.onecenter.info/api/DAZ/GetFacilities"
const freePlacesUrl = "https://www.onecenter.info/api/DAZ/FacilityFreePlaces?FacilityID="
const facilityUrl = "https://online.onecenter.info/api/Facility/GetFacilities"
const freePlacesUrl = "https://online.onecenter.info/api/Facility/GetFreePlaces?FacilityID="

func GetFacilityData() FacilityResponse {
var response FacilityResponse
Expand Down

0 comments on commit 7b131b2

Please sign in to comment.