Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended GEO URI Support for Form-Encoded Posts #32

Open
manton opened this issue Jul 25, 2020 · 2 comments
Open

Extended GEO URI Support for Form-Encoded Posts #32

manton opened this issue Jul 25, 2020 · 2 comments

Comments

@manton
Copy link

manton commented Jul 25, 2020

Copying this from the wiki:

Indigenous for Android has a checkin post type which passes the checkin information as additional parameters in the Geo URI. The payload property is 'geo'. It's not doing a JSON post, so you can also immediately upload pictures as well. Additional properties for the venue/location can be added later. The same technique is used to post my geocache logs, see https://indieweb.org/geocaching

geo:51.5258325,-0.1359825,0.0;name=london;url=https://hwclondon.co.uk

This is supported by:

@dshanske
Copy link
Member

At the Micropub Pop-up Session 2020, it was decided to table this issue as there was no clear interest one way or the other.

@dshanske dshanske changed the title Location checkin with Geo URI Extended GEO URI Support for Form-Encoded Posts Aug 23, 2020
@dshanske
Copy link
Member

Trying to elaborate on the point of this. @swentel added this so Indigenous could submit a checkin as a form-encoded post.

In my WordPress code that consumes it, I convert this into an object using the following logic.

  1. Convert latitude, longitude, and altitude(if present as the 3rd parameter of the coordinates.) into mf2 parameters.
  2. Convert u into an accuracy parameter as mf2 has no such concept.
  3. If there is an h parameter, assume this is an h parameter, same as Micropub.
  4. Convert all other parameters to properties and create a mf2 json object.
  5. If no h property, if it only has the coordinates, assume h-geo. Otherwise,, assume h-card.

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

No branches or pull requests

2 participants