coopcycle-app icon indicating copy to clipboard operation
coopcycle-app copied to clipboard

Giving address shows no results

Open pessi-v opened this issue 4 years ago • 4 comments

Describe the bug Putting an address shows no results, for an address that should have results (in Berlin Neukölln)

To Reproduce Open Coopcycle 1.4.0 on Android. Have internet connection. Enter address in the first view, receive no results

Expected behavior A list of restaurants

Screenshots

Desktop (please complete the following information):

  • LineageOS 16 (Android)

Smartphone (please complete the following information):

  • Sony Xperia XC

pessi-v avatar Nov 20 '20 20:11 pessi-v

It would be nice to include more details, for instance the address that gave no results.

amadsalmon avatar Jan 24 '21 22:01 amadsalmon

@amadsalmon I've updated now to the latest and tried again. Still the same issue: no results for any addresses in Berlin. The last time this was working for me was early autumn 2020

pessi-v avatar Jan 26 '21 09:01 pessi-v

Hi,

On the app we still use Google Maps APIs for address suggestions (see AddressAutocomplete). For sure there are lots of problems on the app, but lots of people are indeed entering their address successfully in Berlin.

So I suspect the problem is specific to you, @pessi-v. Is it possible that you have something that blocks Google APIs?

Another thing that can explain the problem is that we restrict results to a radius of 50km around the center of the city. The exact query is built like this:

https://github.com/coopcycle/coopcycle-app/blob/4339eae66c2a7769213d11d4216950b4c1a997b0/src/components/AddressAutocomplete.js#L182-L196

alexsegura avatar Jan 26 '21 09:01 alexsegura

@alexsegura I don't have issues with other apps that use Google APIs, but it's possible that Lineage OS comes with something that breaks the Google services or that Google checks if the OS is legit.

The addresses I tried are definitely within the radius of participating restaurants and did indeed work before.

pessi-v avatar Jan 26 '21 09:01 pessi-v

This appears to be a specific issue, closing

Paul-Eraman-CoopCycle avatar Apr 28 '23 18:04 Paul-Eraman-CoopCycle