What type of data should I use to store Lat and Lng from Google Map into my database?
I’m not sure how many decimal place should I put for length in mysql.
So should I use Decimal, Float etc?
and how much should I put for Length?
Meanwhile, is it good to put index for Lat and Lng in Mysql?
I use decimal(10,6) for both lat and lon which gives you a resolution better than 1 meter. (Remember to take the minus sign into account).
EDIT:
Quote from the MySQL manual regarding the minus sign on the decimal type:
Source: