Routing through two graphs?

Hi, sorry if this was discussed, but i didn’t find it.
For example, I am creating a graph for a country A. Next, I create a graph for country B. As a result, I have a set of files that represents the graph of country A and the graph of country B.
I need to be able to routing from country A to country B. What is the best way to do this? Load two graphs as single or switch between two graphs when routing? Or something else?
Maybe someone faced such problem and you have some advices and tips?

Hi,
I think, that you can try to merge country A and country B .pbf files before creating GH map for with osmosis, of course it has a sense if they are neighboring countries.

This looks like the easiest option, but unfortunately it doesn’t work for me. I can’t create a graph from two merged countries. I can only have separate graphs for countries.

I fear this is not possible (yet). See this issue: Make merging of graph files possible · Issue #293 · graphhopper/graphhopper · GitHub

Oh, thanks for answer anyway

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.