what is the correct way to get the latitude or longitude from a mysql column which has a spatial index

The column i have is latlong, which stores lat and longitude as point spatial data type.

I am currently getting the latitude and longitude value like this...

latitude - x(GeomFromText(astext( latlong )))
longitude - y(GeomFromText(astext( latlong )))

I was just wondering if this is the correct and fastest way to select the latitude or longitude value?
Who is Participating?
Rakz0rConnect With a Mentor Author Commented:
simply x(latlong) is good enough and fastest way (as far as i know)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.