Skip to content

Slow isochrones for dense areas and bigger time_limit #1458

Open

Description

@karussell

The problem here is the conversion from a point cloud to the polygon, creating the point cloud itself is usually fast and so printing the network directly in the browser like we did in some experiments here does not have this overhead.

There are many possible approaches/algorithms and at the moment we have a high quality solution which has this drawback.

Possibilities:

  • hold the index for the whole world instead of recreation
  • use or learn from existing fast tools like gdal
  • raster approach
  • use heuristical approach via multiple locations "far away", calculated via CH and then creating a polygon

Activity

  1. arijghufran commented on Jul 15, 2020

    @arijghufran

    Any future plans to work on this? I am having similar issues.

  2. Suven commented on Oct 27, 2020

    @Suven

    Am I assuming correctly that just returning points instead of the polygon is no longer possible?

    At least I don't see a matching parameter for that in:

    @Context UriInfo uriInfo,
    @QueryParam("profile") String profileName,
    @QueryParam("buckets") @Range(min = 1, max = 20) @DefaultValue("1") IntParam nBuckets,
    @QueryParam("reverse_flow") @DefaultValue("false") boolean reverseFlow,
    @QueryParam("point") @NotNull GHPointParam point,
    @QueryParam("time_limit") @DefaultValue("600") LongParam timeLimitInSeconds,
    @QueryParam("distance_limit") @DefaultValue("-1") LongParam distanceLimitInMeter,
    @QueryParam("weight_limit") @DefaultValue("-1") LongParam weightLimit,
    @QueryParam("type") @DefaultValue("json") ResponseType respType,
    @QueryParam("tolerance") @DefaultValue("0") double toleranceInMeter,
    @QueryParam("full_geometry") @DefaultValue("false") boolean fullGeometry) {

    The docs at https://github.com/graphhopper/graphhopper/blob/stable/docs/web/api-doc.md state to set result to pointlist but that doesn't do anything.

    Your experiments seems to set result to edgelist but that also doesn't change something.

    https://github.com/graphhopper/isochrone-experiments/blob/deckgl/deckgl/app.js#L45-L49

    My full request looks smth like http://localhost/isochrone?point=50.941968,6.9616718&result=edgelist&time_limit=-1&distance_limit=100&buckets=1&profile=car&reverse_flow=false

    At least my responds always start with

    {
      "polygons": [
        {
          "type": "Feature",
          "geometry": {
            "type": "Polygon",
    
  3. karussell commented on Oct 27, 2020

    @karussell
    MemberAuthor

    See the /spt endpoint for this use case, see also #1577. Have updated the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions