ST_AsGeoJSON(g [, max_dec_digits [, options]])

Generates a GeoJSON object from the geometry g. The object string has
the connection character set and collation.

URL: http://dev.mysql.com/doc/refman/5.7/en/spatial-geojson-functions.html

