NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I'm messing around with OpenStreetMap and Overpass.

Now I want to get information about routes. For example the ferry from Krabi to Railey East. It looks perfect on the map. The dotted ferry line goes from the harbor of Krabi to the harbor of Railey East. But when I click the route, only half lights up. Of course it makes sense. It connects to the other route.

But how do I extract the whole route. How can I programmatic discover the start and the end point of a route?

OSM data layer screenshot with highlighted area: screenshot

asked 20 Jul '16, 23:47

NLAnaconda's gravatar image

NLAnaconda
1665613
accept rate: 0%

edited 02 Aug '16, 21:40

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

when you say "Overpass" you likely mean (at least for the "click" part) Overpass API's interface "Overpass Turbo".

(02 Aug '16, 21:17) aseerel4c26 ♦

Yes I do. :)

(02 Aug '16, 21:19) NLAnaconda

I do not know which specific ferry route you are talking about. Could you please provide the OSM object id/link or at least location?

(02 Aug '16, 21:23) aseerel4c26 ♦
1

It is this route: http://www.openstreetmap.org/way/130768455 Actually what I want to achieve is to know what destinations can be reached from a harbor (in this case: node 2465989873)

(02 Aug '16, 21:27) NLAnaconda

meta: In general, please do not post your questions to several places. That wastes help resources. If you really need to (for whatever reason), please always mentioning it in each post and provide links to the other posts. Once you've got an answer at one place, update all the other places.

(02 Aug '16, 21:42) aseerel4c26 ♦
showing 5 of 6 show 1 more comments

See our documentation wiki about Tag:route=ferry "connect each end of the ferry route to a way on land". So you should be able to

  • (if it is a relation) look at the relation's first and last member and the node of each member which is not a part of another member of the relation should be the start and end.
  • (if it is a way) look at the way's first and last node – that should be the start and end.

However, the wiki is no law book, and things may have been mapped differently in reality.

So, in your example case way 130768455: this is not a mapping which is like the documentation describes. The western end is in the sea at an Y point. Here you would need to find other ways sharing the same end node and continue your imaginary travel through them (routing algorithms if you search a short travel).

To find locations which can be reaches from node 2465989873 you would need to look which ways or relations with route=ferry tags the node is a member of and then find your way until (routing algorithms if you search a short one) you reach land (different for ways or relations and different depending if routes have been mapped not land-to-land – as said before).

permanent link

answered 02 Aug '16, 21:23

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

edited 02 Aug '16, 21:47

Thanks for pointing me in the right direction!

(02 Aug '16, 22:12) NLAnaconda

@NLAnaconda: thanks for the feedback! :-) Glad to help.

(02 Aug '16, 22:14) aseerel4c26 ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×483
×236
×179
×16

question asked: 20 Jul '16, 23:47

question was seen: 5,166 times

last updated: 02 Aug '16, 22:14

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum