NexdApp / nexd-backend

MIT License
38 stars 3 forks source link

GPS/Position functionality #72

Open f10l opened 4 years ago

f10l commented 4 years ago

This is a rather comprehensive issue:

We would like to use geoinformation for filtering the help-requests. Therefore, each help-request would need a location where can be searched for through the app (like ?geoFilter=5km&lat=...&lng=...).

There is already a location module provided by @Lukas1811 . This has geocoding functionality and shows how to use typeorm with geo coordinates. If it competes with a geocoding API, please benchmark against each other.

sebastiangug commented 4 years ago

Do you know if there's a geodb out there that matches postcodes/addresses against coordinates for the whole country? I know such data file exists for free for several countries throughout europe.

Short of that, we could look at non-profit rates for google maps/mapbox api calls to get geodata based on postcode/address; So whenever we introduce a brand new address into the database, we save alongside its lat and long

Lukas1811 commented 4 years ago

The data from the current geo location module is from a website called GeoNames ([http://download.geonames.org/export/zip/]()). The data ist free to use and we only have to mention that we took the data from there. The provide single files for a lot of countries but also one for all of them but I'm not sure if every country on earth is covered by this data