Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Switch lon/lat to lat/lon in the Strava version of iD #3

Open
almccon opened this issue Sep 28, 2014 · 4 comments
Open

Switch lon/lat to lat/lon in the Strava version of iD #3

almccon opened this issue Sep 28, 2014 · 4 comments

Comments

@almccon
Copy link

almccon commented Sep 28, 2014

I'm not sure why the version of iD on Strava's github uses the longitude/latitude style in the URL instead of the latitude/longitude style used by the default iD on osm.org, and used in URLs for most slippy maps.

Slide url: http://strava.github.io/iD/#background=Bing&map=18.00/-122.48614/37.73513
OSM.org url: https://www.openstreetmap.org/edit#map=18/37.73513/-122.48614

I know there's not really any convention for web mapping, since you'll see lat/lon and lon/lat mixed in code all over the place, so I'm not saying one is any more correct than the other. But, for the purposes of coordinates in a URL, zoom/lat/lon seems to be the standard.

Why do I care? Only one reason: it's inconvenient to copy-and-paste the zoom/lat/lon from other URLs into Strava's iD when I'm using Slide. Copy-and-paste is the main way I navigate to the spot I want to edit with Slide.

Is there any reason you switched them, @paulmach?

@paulmach
Copy link

I've also noticed this issue. However, I haven't made any changes to that part of the iD code. I have no idea why it's different for the osm version vs. the default if you checkout the repo.

looks like @tmcw made the call openstreetmap#1025

@tmcw
Copy link

tmcw commented Sep 30, 2014

Eh, I've discussed the x/y/z y/x/z problem too many times to do it with much gusto, but I will say two things:

  • iD on OpenStreetMap is iD, in an iframe, wrapped in its URL protocols. Some of the fancy things you can do with the permalink on OSM will never be possible in 'vanilla iD'
  • iD uses semver and this is absolutely a breaking API change, so it would require iD jump to 2.0.0.

@almccon
Copy link
Author

almccon commented Sep 30, 2014

Ah okay. So maybe what I'm asking for is to have the Strava iD duplicate whatever is happening in the iframe on OSM? No clue how complex that would be.

@boothym
Copy link

boothym commented May 24, 2016

Hi, surprised this hasn't been fixed before now. It's annoying when you are editing in iD and then want to check if Strava has heatmap data for an area you are editing - you can't just copy the co-ordinates over quickly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants