FIWARE / tutorials.TourGuide-App

:mortar_board: FIWARE Tour Guide Application.
https://fiwaretourguide.readthedocs.io/
MIT License
17 stars 19 forks source link

Migrate to an Open Geocoder #63

Closed albertinisg closed 8 years ago

albertinisg commented 8 years ago

Actually we are using Google's API to Geocode the restaurants. We should migrate to an Opensource geocoder provider.

albertinisg commented 8 years ago

After having a look at several providers, I think a good choice could be Opencagedata. It's open under ODbL and CC-BY-SA licenses: https://geocoder.opencagedata.com/faq#legal and also supported by the node-module we are using (node-geocoder). The only thing is, every user will need to use an apiKey, which will be passed as an argument when running the feeder.

albertinisg commented 8 years ago

I've been testing several geocoding providers and here are the results:

The open Source ones:

There were more geocoders like openmapquest or nominatimmapquest, but they use the same geocoder as openstreetmaps and this one didn't work at all.

The non open Source ones:

@jmcanterafonseca the only opensource geocoder that seems to 'work' is opencage, but we will lose accuracy in the geolocation. Should we migrate to that one?

jmcanterafonseca commented 8 years ago

do we have other alternatives non open source but without restriction in the number of requests?

2016-04-04 16:25 GMT+02:00 Alberto Martín notifications@github.com:

I've been testing several geocoding providers and here are the results:

The open Source ones:

  • Openstreetmaps: Searching 5 different address, it could geo-locate just one of them, leaving the others empty.
  • datasciencetoolkit: It couldn't find any of the 5 addresses given
  • opencage: it does geolocate the entity, but not the streets. It means, returns the geo-location of the city, far from being accurate (and requires apiKey)

There were more geocoders like openmapquest or nominatimmapquest, but they use the same geocoder as openstreetmaps and this one didn't work at all.

The non open Source ones:

  • Google: it does geolocate 5 of the 5 tested addresses.
  • agol: it does also geolocate the 5 restaurants (but requires client_id and client_secret)

@jmcanterafonseca https://github.com/jmcanterafonseca the only opensource geocoder that seems to 'work' is opencage, but we will lose accuracy in the geolocation. Should we migrate to that one?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/Fiware/tutorials.TourGuide-App/issues/63#issuecomment-205319840

albertinisg commented 8 years ago

After searching and testing I could't find any other free service (even not opensource) that does offer quality geolocation without any request limitation. There are several opensource ones that offers that, but they are based in openstreetmaps, which did not geolocate very well. We still can do the following:

albertinisg commented 8 years ago

@jmcanterafonseca how should I proceed with this?

albertinisg commented 8 years ago

Approach https://github.com/Fiware/tutorials.TourGuide-App/issues/63#issuecomment-205840078 done in #122