Re: [openstreetmap/openstreetmap-website] geo URIs: separate z parameter with a semicolon, not question mark (Issue #5322)

2024-11-14 Thread Slaven Rezić via rails-dev
OK, I read the URI RFC and it seems that indeed every URI type may contain a 
query part. And as the z is not standardized in the geo URI RFC, it is fair 
enough to put it into the query part.

So I retract my objection here and will create issues elsewhere...

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5322#issuecomment-2477356198
You are receiving this because you are subscribed to this thread.

Message ID: 
___
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev


Re: [openstreetmap/openstreetmap-website] geo URIs: separate z parameter with a semicolon, not question mark (Issue #5322)

2024-11-14 Thread Slaven Rezić via rails-dev
Closed #5322 as completed.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5322#event-15304091302
You are receiving this because you are subscribed to this thread.

Message ID: 
___
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev


[openstreetmap/openstreetmap-website] geo URIs: separate z parameter with a semicolon, not question mark (Issue #5322)

2024-11-14 Thread Slaven Rezić via rails-dev
### URL

_No response_

### How to reproduce the issue?

It seems that additional parameters in a geo URI should be separated by 
semicolons, not by a question mark.
Currently the share functionality on the openstreetmap website is producing geo 
URIs like this:
```
geo:52.51626,13.37787?z=15
```
However, all documentation about geo URIs I found 
(https://en.wikipedia.org/wiki/Geo_URI_scheme, 
https://www.rfc-editor.org/rfc/rfc5870.txt) use only semicolons. Also
I found a software (a geolink extension for emacs org-mode) which also thinks 
it should be semicolons:
https://github.com/misohena/org-geolink/blob/main/org-geolink.el#L31-L33

So should the share functionality generate the above as
```
geo:52.51626,13.37787;z=15
```
?


### Screenshot(s) or anything else?

_No response_

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5322
You are receiving this because you are subscribed to this thread.

Message ID: ___
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev


Re: [openstreetmap/openstreetmap-website] geo URIs: separate z parameter with a semicolon, not question mark (Issue #5322)

2024-11-14 Thread Slaven Rezić via rails-dev
> Aren't ? and ; both allowed in URL syntax to introduce a parameter string? 
> Though ? is pretty much always what people use to the extent that I can't 
> really ever remember anybody using ; instead!

In traditional `http` URIs, only `?` is used to start the parameters, and `;` 
or `&` are used to separate key-value pairs.

But `geo` URIs are not `http` URIs.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5322#issuecomment-2476383779
You are receiving this because you are subscribed to this thread.

Message ID: 
___
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev