Skip to content

Added route relation processing - #84

Closed
NopMap wants to merge 14 commits into
masterfrom
route_info
Closed

NopMap wants to merge 14 commits into
masterfrom
route_info

Conversation

@NopMap

@NopMap NopMap commented Jul 7, 2013

Copy link
Copy Markdown
Contributor

Added handling for route relation membership for foot, bike and horse.

Just information about membership, no data on the routes themselves.

Example usage in BikeTwoSpeedEncoder.

Implements #76
Depends on #83, should be pulled afterwards.

@karussell

Copy link
Copy Markdown
Member

Nice!

Would it be possible to avoid somehow encodingManager.needsHikingRoutes, needsBicycleRoutes etc? Could it be somehow translated to encodingManager.needs(RELATIONS) like the NEEDS_DEM?

Also I would need a simple OSMReader test for BikeTwoSpeedEncoder - with a (new) file containing relations.

@NopMap

NopMap commented Jul 8, 2013

Copy link
Copy Markdown
Contributor Author

Would it be possible to avoid somehow encodingManager.needsHikingRoutes, needsBicycleRoutes etc? Could it be somehow translated to encodingManager.needs(RELATIONS) like the NEEDS_DEM?

Yes, just a matter of taste.

Also I would need a simple OSMReader test for BikeTwoSpeedEncoder - with a (new) file containing relations.

How? BikeTwoSpeedEncoder needs a DEM to be present.

@karussell

Copy link
Copy Markdown
Member

How? BikeTwoSpeedEncoder needs a DEM to be present.

With the existing code it should be possible to do something like new Elelation(height=90m, width = 90m).setData(lat_N, lon_N, heightValue_N)

Then we could assert easily if the speed is really different for two directions uphill/downhill but e.g. it is the same on a contour.

@NopMap

NopMap commented Jul 8, 2013

Copy link
Copy Markdown
Contributor Author

Would it be possible to avoid somehow encodingManager.needsHikingRoutes, needsBicycleRoutes etc?

Done.

@karussell

Copy link
Copy Markdown
Member

Depends on #83, should be pulled afterwards.

Can you make this easily independent of #83? As there are some more todos which could take a bit longer.

@NopMap

NopMap commented Aug 8, 2013

Copy link
Copy Markdown
Contributor Author

The route handling classes are independent and could be pulled individually.

But it was built on the branch containing elevation handling so you would have additional work integrating it now and additional work putting in back in context with the elevations.

@karussell

Copy link
Copy Markdown
Member

Closing in favor of #132

@karussell karussell closed this Dec 22, 2013
dabiih pushed a commit to dabiih/graphhopper that referenced this pull request Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants