ZeusWPI / Haldis

Haldis is your friendly neighbourhood servant. He exists so lazy fucks like you and me don't need to keep tabs of who is ordering what from where.
Other
13 stars 15 forks source link

Query/cache locations serverside instead of having clients query them via komoot.io to draw them on map #100

Open mcbloch opened 5 years ago

mcbloch commented 5 years ago

one of the wrong adresses probably gives an exception that prohibits the others from being looked up. Make this not error prone.

-> app/templates/maps.html

mcbloch commented 5 years ago

Its not an exception, the adresses in the database are just really bad.

mcbloch commented 5 years ago

Error when the browser tries to load some of the locations: Failed to load https://photon.komoot.de/api/?limit=1&q=Overpoortstraat%2046%209000%20Gent: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://haldis.zeus.gent' is therefore not allowed access. The response had HTTP status code 503.

mcbloch commented 5 years ago

Anybody an idea on how to fix this clientside?

If not we can query (and optionally cache) the locations serverside.