buskerudbyen / cycling-norway

3 stars 2 forks source link

Bikely: Broken API both in new locations and available lockers #100

Closed tsobuskerudbyen closed 8 months ago

tsobuskerudbyen commented 10 months ago

There are now new locations with Bikely bike lockers in Drammen. See screenshot from app. Any reason that:

  1. New locations are not updated?
  2. Number of lockers on existing locations are not the same? (Screenshots taken at the same time.)

Sykkelveier.no: image Bikely app: image

leonardehrenfried commented 10 months ago

I took a look at this today.

My previous API call https://api.safebikely.com/api/v1/s/locations is no longer working and return an error 404.

I've looked the Bikely website and cannot find any technical information about how to consume the API. Do you have any?

tsobuskerudbyen commented 9 months ago

Answer from Bikely just now:

Fra: Keivan Farr Sendt: fredag 23. februar 2024 09:43 Til: Trond Solem Kopi: Hallvar Bergh; Leonard Emne: Re: [buskerudbyen/cycling-norway] Bikley: Broken API both in new locations and available lockers

Hello Trond,

Sorry for the late reply on this one. We removed part of the API for external clients and this endpoint was one of them.

As a temporary alternative you can use our public (no API key) end point. Here is our full documentation https://api.safebikely.com/swagger/index.html for Leonard.

What you need is the "/api/services/app/Location/GetPins" endpoint, return type is the same as before. You can find all the details from the Swagger page. I hope this fixes the issue for now, until we find a better solution.

Regards,

tsobuskerudbyen commented 9 months ago

Is this ticket dependent on https://github.com/opentripplanner/OpenTripPlanner/pull/5708 ?

leonardehrenfried commented 8 months ago

Yes, it is. That PR was merged a few hours ago so I deployed it to our instance and Bikely is back!

Screenshot from 2024-03-04 13-42-03

https://tinyurl.com/yw8aodjv