openstreetmap / openstreetmap-website

The Rails application that powers OpenStreetMap
https://www.openstreetmap.org/
GNU General Public License v2.0
2.21k stars 917 forks source link

"Directions from here" often places the point hundreds of meters elsewhere #2982

Open jidanni opened 3 years ago

jidanni commented 3 years ago

I can always move the red and green makers to any arbitrary point anywhere I want along the road with the mouse, and it works great. 26976-2 I just don't understand why the right click menu's "Directions from here" and "Directions to here" often place the point hundreds of meters elsewhere, whereupon I simply have to grab it and put it back where I intended it to be.

jidanni commented 3 years ago

Examining where the point flies off to, one finds nothing special there, 8612-3 So perhaps it is programmed to fly off to invisible points every x00 meters or something.

HolgerJeromin commented 3 years ago

I think we have a round trip here. The position is converted in an address. And this one is used after that. So in a city your route starts/ends at the next housenumber an not at the exact coordinate.

mmd-osm commented 3 years ago

1874 is related

jidanni commented 3 years ago

Well, if I enable the Data Layer, I can see there is nothing there except the road. So there are no addresses there that it is dragging itself too. So it must be some other bug.

HolgerJeromin commented 3 years ago

@jidanni please share the exact position you opened the context menu. Use the share url feature with activated marker/pin.

jidanni commented 3 years ago
  1. Place your mouse upon any bus stop shown in the image.
  2. Right click "Directions from here".
  3. No matter what, the green marker flies over next to the "8".
  4. OK, now grab the green marker, and drag it back to the bus stop.
  5. Ah, finally it stays there.
  6. OK, now do all this also for "Directions to here", to go from one bus stop shown, to the next, off the image, to the west.
  7. Just when you think maybe it will all work, both green and red snap back to the '8'. Distance: 0m. Time: 0:00.

8817-2

Same deal, not matter 'foot', 'car', etc.

jidanni commented 3 years ago

Apparently it is gluing itself to the midpoint of https://www.openstreetmap.org/way/394379507

The iD editor doesn't warn of anything wrong with the tags of those bus stops.

What if a car breaks down on a long stretch of desert highway? Must I tell the person to walk many km. to the midpoint to wait for help? "I don't see any midpoint sign. All I see is a sign "KM 459", and it is getting windy."

HolgerJeromin commented 3 years ago

Oh, I really waited for your comment that someone will die because of a missing feature or bug at osm.org. Thanks for providing it.

HolgerJeromin commented 3 years ago

As I said: The position is set to the address: Dongguan Road Section 3, Hehe, Nanshi Village, Heping District, Taichung, 42351, Taiwan

jidanni commented 3 years ago

That's is a great address. Except the postman will say it is lacking a house number. So is invalid. Better would be just leaving the cursor where we placed it.

jidanni commented 3 years ago

Also in developing countries, perhaps half the population's houses don't have house numbers.

HolgerJeromin commented 3 years ago

No one is arguing that this is a optimal solution. No one has closed this bug as invalid. So adding more and more comments with no more content will not solve this faster. The normal procedure is:

  1. report anomaly (done by you)
  2. analyse why this behavior is happen (done by me)
  3. provide a code change or waiting for a volunteer to change the behavior
  4. discuss if this fix makes something worse

adding more and more text as 2b, 2c... why the issue is really a problem to solve will only disturb all who are getting notification in this bug tracker.