TechnionYearlyProject / Roommates

The Best platform for finding your next Roommates
4 stars 0 forks source link

Design: Location review: struct design #265

Closed chananbental closed 6 years ago

chananbental commented 6 years ago

{ id: obectID, street name: string, city: string, rated characteristics: { parking: real, publicTransport: real, noise: real, commercialServices: real, upkeep: real, general rating: real }, voters: [objectID, objectID], usersRevies: [ { _createdBy: ObjectID, review: string } ] }

OrAbramovich commented 6 years ago

Hi @chananbental , I think you should consider to add geo-location data (longtitude and latitude) since:

  1. We will be able to give a review for the area (e.g. of 500 meters).
  2. It's a normal form: user might type "מלל" and the other one "מל"ל" etc.
  3. We will be able to add an efficient DB index.
chananbental commented 6 years ago

good point @OrAbramovich , thanks ill update in the document i am writing, ill add a link when i finish

chananbental commented 6 years ago

locatin review API