konektaz / where-is-when-is

Geodjango bootstrap integration
www.konektaz.info
8 stars 4 forks source link

Task - Prevent User-Created Location Duplicates #134

Open grvhi opened 11 years ago

grvhi commented 11 years ago

Problem

It is currently possible for users to create new locations which duplicate existing locations.

Task

We need to prevent user-created duplicates by comparing submitted locations against locations in the database

Proposed Solution

An initial workflow idea (discussed by @konekta and @Erve1879):

  1. User enters new location information.
  2. Backend searches for similar locations based on parameters provided and returns similar locations as suggestions.
    • Backend can also return an identical match based on Name, Address, lon/lat or a combination of those three.
    • If the system finds an identical match (based on the above), we can prevent the user's location being saved.
    • We could perhaps query OSM if data is missing at this stage for the user to confirm?
  3. User either selects a suggestion or confirms that their new location does not exist.
  4. New location is saved

    CC

@timlinux