Skip to content

Question - Handlers #289

Answered by lonvia
ObiWahn asked this question in Q&A
Mar 17, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

NodeLocationsForWays is a handler like any other. You can just add it to your handler chain and then have the node locations available in later handlers.

SimpleHandler.apply_*() functions are a convenience function which offer some additional setup around the raw osmium.apply depending on what callbacks you have installed. Among other things, they will set up the location handler for you, when needed. They cannot handle handler chains but will only apply a single handler.

At this point it might be helpful if you tell us what exactly you want to achieve. Without understanding your goal it is difficult to understand the questions.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ObiWahn
Comment options

Answer selected by ObiWahn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #286 on March 19, 2025 08:12.