I'm developing a system that will store some Google Maps paths of the registered users and structured my table as below:
----------------------
| trajetos |
----------------------
| id |
| id_usuario |
| partida_longitude |
| partida_latitude |
| chegada_longitude |
| chegada_latitude |
----------------------
This route will be simple and will include a starting point and an arrival point. I know this table will have many records (hundreds of thousands) and at this point I need to think about performance when I go searching for a route.
My question is:
This is a common (and perhaps best) framework for storing Google Maps points in a database?
Another option would be to store the address (instead of latitude and longitude), but this would compromise performance by information?
I also thought of using only the zip code with the place number (for precision), would it be better than latitude and longitude? Are there any other way to store these "points" that is efficient?