$table->decimal('long', 10, 7);
$table->decimal('lat', 10, 7);
Dec 30, 2015
10
Level 9
What type of column type should I use for storing latitude and longitude?
Looking at this stackexchange article I'm kind of confused how I should go about storing geographic data using mysql and laravel.
Title: What is the ideal data type to use when storing latitude / longitudes in a MySQL database?
I plan to be storing latitude, longitude and countries. What column type should I use in my migrations?
Thank you for the help I may get.
Level 9
10 likes
Please or to participate in this conversation.