4

I am new in PostgreSQL and I am working in Laravel project where I have to store latitude, longitude for users. And after that I have to find their friends from location so which datatype I have to use to store latitude & longitude in PostgreSQL?

Any Idea?

Amela Kirby
  • 51
  • 1
  • 2
  • 4
    Possible duplicate of [Which data type for latitude and longitude?](https://stackoverflow.com/questions/8150721/which-data-type-for-latitude-and-longitude) – Alex K. Aug 07 '18 at 09:58
  • Answer for your question is already [here](https://stackoverflow.com/questions/8150721/which-data-type-for-latitude-and-longitude) on stackvoerflow. – Shreeraj Aug 07 '18 at 11:13

1 Answers1

1

You can use float or double precision for saving the lat and lng in PostgresSQL.

Zain Khan
  • 1,644
  • 5
  • 31
  • 67