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

Hi, We're doing a map of Iona island, Scotland showing some places of interest related to saint Colmcille or Columba. link:colmcille.modus.ie/en/map-marker-route/iona/ The map uses OpenStreetMap and we've got all 8 map markers in the right places showing the places of interest, but we can't get them to link up. In fact, the route shown is on the mainland. It's like nobody has walked the trails between the map markers so the map is suggesting to go back to the mainland by boat, go to another harbour and get a different ferry back to the other parts of the island. We have 8 other trails in Scotland, Ireland and Northern Ireland and they all work fine. Any help would be greatly appreciated. Thanks.

asked 25 Jun '21, 16:48

Eamon's gravatar image

Eamon
16113
accept rate: 0%

edited 25 Jun '21, 16:49

Hi Frederik,

Our developer is having trouble creating the presaved map and is asking the question below:

But we are not getting routing option like Walking, Cycling and Driving in GPX file. SO can you ask to support how to use that type of routing option in GPX.

Can you help?

Thanks.

Eamon.

(12 Jul '21, 14:19) Eamon
1

One more thing worth mentioning - I can't comment on Iona, but some of the things on one of your maps of West Donegal don't seem to be in OSM at all. I'd expect Garvecross Cairn to be around https://www.openstreetmap.org/#map=19/54.71436/-8.73739 and even when I click "data" to look at things not shown in a particular map style, there's nothing there.

I'd suggest having a chat with the Irish OSM community because (a) they're really friendly and (b) there are a number of folks there that are really interested in this sort of historical stuff. If you go to https://openstreetmap.community/ and zoom in on Ireland you'll see various options - Telegram is probably where most IE people are.

(12 Jul '21, 15:32) SomeoneElse ♦

Hi Frederik,

That's exactly what we are trying. We want an admin to be able to add walking routes via the admin, then we want to display those routes on a map.

In the admin, we have a marker drag and drop, this is really the only time that the route needs to be calculated. Based on your comments we are now trying to redo the maps so we are not calling the api each time a map loads on the front end, instead they will call a local GPX file.

We are also using Mapbox, this is the only way my dev couldd work out how to get walking routes to display.

Both myself and my dev are new to OSM.

Are we taking the best approach to achieve this or is there guide documentation to the api we can follow?

David

permanent link

answered 21 Jul '21, 10:27

DavidHenry's gravatar image

DavidHenry
51223
accept rate: 33%

Can you explain in a bit more details what you mean by that - or example "We want an admin to be able to add walking routes via the admin". What does "via the admin" mean here?

(21 Jul '21, 11:02) SomeoneElse ♦

or is there guide documentation to the api we can follow?

For the avoidance of doubt, there is no native OpenStreetMap "create a map with routes on it" API. There are third-party services (like uMap and from Mapbox and others) that may do what you want. If you've solved your problem by using a service from Mapbox - great!

(21 Jul '21, 11:05) SomeoneElse ♦

In the admin area we have an area to set where the marker should go, like this:https://prnt.sc/1dwyrro Then we have another option so that the markers can be arranged in the correct order to make the route: https://prnt.sc/1dx08sv This is how we set the order of markers defining the correct route to take. Does this help explain?

(21 Jul '21, 12:41) DavidHenry

Does this help explain?

Not really. It's the admin area of some website, but which one?

(21 Jul '21, 12:49) SomeoneElse ♦

sorry, I thought you had that already, the site is at: https://colmcille.modus.ie/ you can see a working map at: https://colmcille.modus.ie/en/map-marker-route/iona/

(21 Jul '21, 15:50) DavidHenry
2

Given that routing isn't really important, wouldn't a simpler answer to the requirement just be a series of markers as set out in https://leafletjs.com/examples/quick-start/ , or even polylines as per https://gis.stackexchange.com/questions/29833/drawing-polyline-in-leaflet ?

(21 Jul '21, 17:38) SomeoneElse ♦
showing 5 of 6 show 1 more comments

This web site is very poorly designed and harmful to OpenStreetMap. Every time anyone visits the web site, or any of the other trail web sites you have created, a routing request is made to the OpenStreetMap routing engine where it uses up OpenStreetMap's donation-financed resources.

If you have 1000 visitors a day, then that's 1000 route requests to OpenStreetMap. If you are featured somewhere in the media and you have a million visitors, that's a million route requests to OpenStreetMap.

All without making any sense at all, because the image you want to serve is always the same!

What you need to be doing is run these route requests once, save the result as a GeoJSON or KML or CSV file, and then serve that file. That would use zero computing resources on OSM's side. And your site would still work even if OSM is overloaded. Right now, the way you have built this, you have zero control over the paths that are shown; if someone accidentally breaks a path in OSM then it might show a giant deviation, and then someone complains to you and says "your map shows a wrong path", and you want to check it and in the mean time OSM has been fixed again so you don't even know what they saw when they looked at the map. So, any way you look at it, this is badly done - bad for you, and bad for us. Please fix it.

The reason you get the funny results on Iona is most likely the way in which you build your routing request as a round trip between the different points and the fact that you explicitly request "driving" mode, whereas many of the locations are not anywhere near a road that is accessible by motorcar.

I have also noticed that your application uses a "raw" version of OpenLayers that pulls in more than a hundred individual OpenLayers snippets which is also not how this is usually done.

I'm sorry to say this but this nice looking web site is extremely ugly under the hood. If this is the work of a volunteer, let us help you fix it. If this is the work of a paid "professional", then please ask them for your money back and find someone who actually knows what they are doing!

permanent link

answered 25 Jun '21, 17:09

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Hi Frederik,

Thanks very much for your helpful comments. Our developers will take them on board, especially running the requests once so as not to overload OSM resources. Unless there's a bug, we have all the routes set to walking as opposed to driving. We're checking that out right now. We'll probably be back with more questions, but we really appreciate your prompt, knowledgeable response. once we've done some work at our side, we'll let you know so you can look it over.

Thanks again.

Best.

Eamon.

(29 Jun '21, 10:03) Eamon

Hi Frederik,

Our developer is having trouble creating the presaved map and is asking the question below:

But we are not getting routing option like Walking, Cycling and Driving in GPX file. SO can you ask to support how to use that type of routing option in GPX.

Can you help?

Thanks.

Eamon.

(08 Jul '21, 15:50) Eamon
1

It's probably worth taking a step back and asking what you are actually trying to do?

Also it might make sense for your developer to ask questions themselves rather than have you "interpreting" them here.

A GPX itself is just a flat XML file with some sorts of information in it (which can include routes between points). It makes no sense to calculate these routes on the fly though - presumably you either just want to show a bunch of locations (and let people find their own way along roads and paths that are clearly shown) or you have an idea of how people should go from one to the other, and you could overlay that on your existing Leaflet map.

(12 Jul '21, 15:21) SomeoneElse ♦

HI Guys,

We've had a OSM pro review the code and make changes, the locations are stored as json when saved in the admin. I'd be grateful if you could take a look and let me know if this is good or if we should continue tweaking?

https://www.colmcille.org/en/

permanent link

answered 23 Sep '21, 16:11

DavidHenry's gravatar image

DavidHenry
51223
accept rate: 33%

Your answer
toggle preview

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:

×362
×26
×2

question asked: 25 Jun '21, 16:48

question was seen: 1,521 times

last updated: 23 Sep '21, 16:11

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