WoBike icon indicating copy to clipboard operation
WoBike copied to clipboard

Bird radius

Open dkwasniak opened this issue 5 years ago • 8 comments

Hi,

I found that the radius parameter in bird request doesn't work. It is required because without it I get an empty result but no matter the value is the result is the same. Has anyone the same problem? Maybe I do something wrong.

Here is my request:

curl -X GET \ 'https://api.birdapp.com/bird/nearby?latitude=52.235325&longitude=21.033045&radius=9999' \ -H 'Accept: */*' \ -H 'App-Version: 4.41.0' \ -H 'Authorization: <token>' \ -H 'Cache-Control: no-cache' \ -H 'Connection: keep-alive' \ -H 'Device-id: 8f984fe6-3ad8-401f-b1ee-65e1e1b5fc7e' \ -H 'Host: api.birdapp.com' \ -H 'Location: {"latitude":52.235325,"longitude":21.033045,"altitude":500,"accuracy":100,"speed":-1,"heading":-1}' \ -H 'Postman-Token: a8d1465b-ba04-44da-914a-7f17706fcb18,14fbebdc-9c99-4b81-b93f-e244496c43ea' \ -H 'accept-encoding: gzip, deflate' \ -H 'cache-control: no-cache' \ -H 'cookie: __cfduid=d6f690f54033624e157630b93bad3c40f1561664390' \ -b __cfduid=d6f690f54033624e157630b93bad3c40f1561664390

Best Damian

dkwasniak avatar Jul 03 '19 06:07 dkwasniak

The radius in your example is too large. I think they must've changed something recently and added some upper limit for the response data size.

mchyb avatar Jul 03 '19 15:07 mchyb

I'm also hitting this as well - passing any value for the radius param gives you the same result set.

Has anyone gotten that parameter to work?

steven-liu avatar Jul 03 '19 23:07 steven-liu

Same here- tried a radius of 1000 and 5000 with no change in the resulting scooters.

kaets avatar Jul 05 '19 19:07 kaets

Try something between 600 to 1000.

mchyb avatar Jul 08 '19 09:07 mchyb

Tried 10, 100, 300, 600. All returning 250 birds, not less not more.

himanshu20792 avatar Aug 18 '19 12:08 himanshu20792

I also seem to always get 250 scooters

Sipsipl avatar Nov 14 '19 14:11 Sipsipl

From what I can tell, radius is a number in meters. It will always max out at 260 scooters though, so a smaller radius with a more precise location is optimal. It seems like there might. also be a minimum and maximum radius, but idk what that is.

watzon avatar Aug 04 '20 18:08 watzon

Same issue here, Im going to see if I can generate a full list by moving the latitude and longitude around and filtering any scooters I've already received

ablakely avatar Sep 18 '20 04:09 ablakely