Open lennerd opened 9 years ago
I can't promise a lot of time on this, but I'd like to take a look.
fyi: Maybe a Photon alternative? https://mapzen.com/projects/search
@voltagex That would be great!
@holgerd Thanks for sharing. The advantage of Photon is that we already implemted this library for the Embed Widget.
I'm trying to avoid this falling off my list of things to do. I have some time this weekend and next (GMT+11, so it's Friday night as I write this). I can code, but I haven't written Ruby before.
Can someone point me in the right direction to get started on this?
I'm assuming this also means hitting photon.komoot.de with all the searches from wheelmap - do we want to check if that's OK? Otherwise is it possible to host our own on wheelmap infrastructure?
I checked back with Christoph from Komoot once, and he confirmed there is no problem using http://photon.komoot.de if we keep below 7 requests/second. If we hit more, there is something we can work out with them i guess.
@voltagex You can find the corresponding part of the app in the search controller: https://github.com/sozialhelden/wheelmap/blob/master/app/controllers/search_controller.rb
Here you will find the current implementation of the Nominatim API. To change this implementation to use Photon should be quite trivial. The maybe a bit more difficult part is to handle the Photon response as Nominatim has an own format and Photon uses GeoJSON.
You find more informations in the corresponding documentations: Nominatim: http://wiki.openstreetmap.org/wiki/Nominatim Photon: https://photon.komoot.de/#api
If you have any more questions, don't hesitate to ask.
Time constraints mean I can't take this one on at the moment - I hope I haven't scared anyone else off from having a go at this.
Regarding #18:
Implementing better search feature
Our current search feature is based on Nominatim, which makes it very basic and sometimes unstable.
Wouldn't it be great to use a service, like Photon?
This would give us:
Todos