GrLdev / Rate-My-Student-Home

A website designed to allow students rate their student homes in Cardiff.
3 stars 0 forks source link

Coordinates or place_id in database? #43

Closed theobaur13 closed 1 year ago

theobaur13 commented 1 year ago

The interactive map markers can only be created using latitude and longitude coordinates. Therefore if we wanted to display many points on a map we would either have to make API calls to convert every place_id into coordinates on load, which could take a while to load especially as the db grows or we could have multiple API calls at once - could be an issue as db grows for my google maps credit. My proposed solution is to have coordinates alongside place_id in the db, or only use coordinates in the db.