Created
September 11, 2017 00:01
-
-
Save stephenquan/73a074588b97681ab80f3e42accb2a60 to your computer and use it in GitHub Desktop.
AppStudio SQLite spatial functions example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT ST_Distance(ST_Point(144.965819, -37.830658, 4326), | |
ST_Point(144.954433, -37.832262, 4326)) as distance; | |
-- 1015.7444936798523 | |
SELECT ST_Azimuth(ST_Point(144.965819, -37.830658, 4326), | |
ST_Point(144.954433, -37.832262, 4326)) as radians; | |
-- 4.535820702776582 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment