Hi, I've got this issue. I have already downloaded two diff. country extracts (e.g. Austria and Swiss) How can I achieve, that the roads at the border crossings will be joined so I can navigate from Austria to Swiss ? Update : In my case I would like to give an option to the user to choose which country he wants to download..e.g. Austria..and in couple weeks later he can download Swiss and he will be able to navigate from Austria to Swiss.. Thanks asked 15 Dec '14, 09:43 sports-girl1 |
Not a direct answer but OsmAnd has solved this exact problem. You can browse their map repository and download individual countries and U.S. states at will and the internal routing engine will route between them. So you might be able to learn something from their source code. answered 15 Dec '14, 17:14 ToeBee |
If you have two extracts then you could try merging them, though if they are from different dates that alone might introduce extra problems (the roads they have in common might have changed between the two different times). For merging two extracts, you could look at osmconvert or osmosis for example. answered 15 Dec '14, 14:28 EdLoach ♦ As I mentioned I would like to distribute maps by country. So I cant merge it first. Somehow I need to know exact border points between those countries (extracts) and distribute maps with that same border points. Is there any easy way how to make intersection between country border line and border ways ?
(15 Dec '14, 14:38)
sports-girl1
|
(I presume you're using the geofabrik country downloads?). One approach is to download the europe file, and then cut out the area you are interested in (Switzerland + Austria). Then you will have continuous roads. answered 15 Dec '14, 10:44 rorym 2
Yes its easy solution but in my case i would like to give an option to the user to choose which country he wants to download..e.g. Austria..and in couple weeks later he can download Swiss and he will be able to navigate from Austria to Swiss..
(15 Dec '14, 11:25)
sports-girl1
|