go-spatial / geom

Geometry interfaces to help drive interoperability within the Go geospatial community
MIT License
174 stars 38 forks source link

Reverse Geocoding #122

Open azzahrah opened 3 years ago

azzahrah commented 3 years ago

howto build reverse geocoding with many polygon and polylinestring as source of data, the part i want to build is:

  1. indexing many polygon, and query like ST_Contains(POINT, GeometryField)
  2. indexing multiple PolylineString and query like ST_Intersects(Box,GeometryField)

TIA

gdey commented 3 years ago

I think we have some of the primitives for this, but I'll have to look. I know I have created an index using bbox's to a geometry. And then did a search on which bbox best contains a point, before asking the geom if it contains the point. But I don't know off the top of my head.