I have table polygon_versions with geo_json field of type json.
DB fiddle: https://dbfiddle.uk/mzsp-4tg
How can I select all table polygon_versions records within radius of 20 kilometers from geometry point with exact combination of latitude / longtitude?
For example latitude is: 30.502390312011734 and longtitude is: 50.4947950787348
What SQL query I can execute in PostGIS database?
I have tried:
SELECT * FROM polygon_versions WHERE geo_json LIKE '%30.502390312011734%'
but it gives me the following error message:
ERROR: operator does not exist: json ~~ unknown
LINE 19: SELECT * FROM polygon_versions WHERE geo_json LIKE '%30.5023...