Skip to content

Improve edge filtering for LocationIndex #729

Closed

Description

@karussell

The current method

QueryResult findClosest( double lat, double lon, /*->*/EdgeFilter edgeFilter )

is too simple for the following use cases:

  1. If the Weighting returns infinity we need to exclude those edges too. E.g. just include weighting in the EdgeFilter or combine 'access determination' with weight calculation somehow.
  2. Sorting edges according its weight should be possible, e.g. for map matching and via-point finding of the round trip calculation. But the problem here is: how do we combine the distance from the request point to the snapped point and the weight? And when can we stop increasing the radius? See one example: https://discuss.graphhopper.com/t/5000

Update: the BlockAreaWeighting makes problems. Before the creation of this we need the LocationIndex, but the LocationIndex needs the Weighting. Or to put it differently: a block-edge-Weighting should be possible for the LocationIndex, but then it operates on the base graph. Then, after it is done, the block-edge-Weighting needs to operate on the newly created QueryGraph to know about virtual edges and nodes. Potential fix: throw an error if query points lay inside the blocked area. Then BlockAreaWeighting does not need to know QueryGraph (only BaseGraph)

Activity

  1. added a commit that references this issue on Dec 30, 2019
    ae56a8d
  2. added a commit that references this issue on Feb 3, 2020
    9c2c9ec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions