geopoint from json mysql function

Solutions on MaxInterview for geopoint from json mysql function by the best coders in the world

showing results for - "geopoint from json mysql function"
Laura
09 Sep 2018
1Press CTRL+C to copy mysql> SET @json = '{ "type": "Point", "coordinates": [102.0, 0.0]}';
2mysql> SELECT ST_AsText(ST_GeomFromGeoJSON(@json));
3+--------------------------------------+
4| ST_AsText(ST_GeomFromGeoJSON(@json)) |
5+--------------------------------------+
6| POINT(102 0)                         |
7+--------------------------------------+