I have a table called city, which currently only contains the following columns:
- id
- name
- lat (for center point)
- long (for center point)
- date_created
I would like to store a GeoJSON response like this one here
My question is, which datatype should i use to store it ?
Things to be considered
- Later on i would like to be able to query like this: given a x,y coord i would like to know in which city such coord belongs to (or inside of)
- I am using Postgres, AWS - RDS (latest version)
- Don't have postGIS installed
Some solution that i found online:
- jsonb << i am not sure if i use this data type i would be able to query
- ST_AsGeoJSON << according to this, i can use such function however i don't have postGIS installed or does this function available out of the box
If anyone could suggest me which datatype i should use, along with how should i use it in my query that would be very helpful. I really appreciate your input. Thanks