treboryx / smartlockers

A map with smart lockers from various companies in Greece
https://smartlockers.roberto.gr
2 stars 0 forks source link

Skroutz doesn't work #1

Open gioiliop7 opened 1 year ago

gioiliop7 commented 1 year ago

Skroutz endpoint returns 500 error. You can use the ecommerce endpoint, no the checkout https://www.skroutz.gr/ecommerce/fetch_skroutz_points?coordinates%5Blat%5D=37.9687332&coordinates%5Blng%5D=23.7296007&radius=1.5 for example. As it was the checkout also i think there is no need for token or cookie :)

treboryx commented 1 year ago

hey thanks for the heads up

although this doesn't work because there seems to be a limit on the radius value which is what this website relies on (aka any absurd value will return all of the skroutz lockers)

gioiliop7 commented 1 year ago

Such a nice idea is to get users location on every change on map and fetch the nearest with current lat and lng. Also you can make the radius bigger i think it will work. If you can't do that, in every move of map change the lat and long with geolocation