Skip to content

Wrap GeoSearch queries into a single method #68

@rolyhudson

Description

@rolyhudson

Anticipating #67 (name based queries) that will add to the existing OpenStreetMap type queries based on key value pairs the proposal here is to consider generalising the geospatial search.
The goal is to make a user friendly GeoSearch that returns a GetRequest ready for the HTTPAdapter to Pull (or maybe the HTTPAdapter part is also wrapped up and return results?)
image
4 simple inputs are the input basic requirement:

  1. searchFor (mandatory)
  2. searchIn (optional)
  3. settings (optional)
  4. active (run)

Mandatory what to search for

  • OSM objects (defined by standard OSM key or category and type (if no type all types in category))
  • Addresses (or part addresses)
  • Free form queries (taking advantage of Nominatim special phrases)
    image

Optional where to search in (default is the world):

Optional settings (default is to return geojson formatted data + polygons, limit result to 50, provide all details, search all countries)

image

At most simple this could unlock the potential of a search like this:
image

Steps towards this (each an individual PR):

  1. Merge PR Improved performance for ToUTM conversions #66
  2. Add basic unwrapped Nominatin requests Add Nominatim query functionality #67
  3. Add prototype GeoJson objects (just in the OpenStreetMap_Toolkit as a start)
  4. Add converts ToGeoJson and FromGeoJson (including extending the ToUTM converts to convert GeoJson to Universal Transverse Mercator)
  5. Add OpenStreetMap_Toolkit request builder to return a correctly configured GetRequest.
  6. Wrap the GeoSearch as described above.

@rwemay @al-fisher any further thoughts on this one?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew capability or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions