locationtech / spatial4j

LocationTech Spatial4j: A Geospatial Library for Java
https://projects.eclipse.org/projects/locationtech.spatial4j
932 stars 167 forks source link

Reverse Geocoding #208

Closed azzahrah closed 2 years ago

azzahrah commented 2 years ago

i have mysql spatial data, geometry (Point, Polygon, and LineString), is possible convert to spatial4j and build reverse geocoding?, mybe any example howto import from mysql, and indexed imported data and reverse based on latitude/longitude?

dsmiley commented 2 years ago

Hi. No, Spatial4j doesn't hold many shapes in an index that can be queried like that. I've done this with Apache Solr. If your data can entirely fit in RAM, then I suggest looking at JTS SpatialIndex.