Transportr icon indicating copy to clipboard operation
Transportr copied to clipboard

Use a real geocoder

Open ADepic opened this issue 7 years ago • 4 comments

Instead of dealing with search issues due to faulty libraries or data in public-transport-enabler, it is just easier to simply use a proper osm geocoder such as pelias, photon or nominatim.

This will fix a lot of problems.

ADepic avatar Oct 07 '18 08:10 ADepic

Can you maybe elaborate on the "lots of problems" that exist at the moment?

It is generally better to state a problem before proposing a solution.

grote avatar Oct 07 '18 13:10 grote

Well, #476 and #441 are due to the API being broken. An external address search won't solve those.

But I see that this makes sense if the user's area isn't covered well by the API's address search. However, how to find out if that's the case?

Even if you can do that or always use an external address search, there's new problems with that:

  • Some providers can't search from custom addresses, e.g. #527
  • How to limit the scope of the address search to the area covered by the current API?
  • How to prevent the privacy impact by leaking the user's location to yet another third party?

grote avatar Oct 12 '18 20:10 grote

To limit the scope of the search to what's in the current network you have chosen, well, I don't think that is possible. But I think people are sensible enough to realise when they have searched for something outside of the scope. Returning an error should be enough.

As for privacy, I think you should host your own instance ( which is necessary for pelias ) . I don't know your stance on this, so please share your opinion/view. I don't know the costs and difficulties with hosting a server .

As for some providers not working, I don't know why that is the case. Surely transportr (or some library it uses) calculates the walking directions to the nearest / best bus stop?

ADepic avatar Oct 12 '18 21:10 ADepic

I think people are sensible enough to realise when they have searched for something outside of the scope.

I am not so sure. People seem to have a hard time understanding the different data sources (APIs) and their coverage.

As for privacy, I think you should host your own instance

Sorry, unlikely to happen. I already host a Navitia server myself for my own region and have barely enough time to maintain it.

grote avatar Oct 13 '18 14:10 grote