#microformats 2016-10-24

2016-10-24 UTC
edsu_, sagerdearia, MeanderingCode, tantek, KevinMarks, KevinMarks_, nitot, Erkan_Yilmaz_, dkm_, bear, KartikPrabhu and willnorris joined the channel
sagerdearia, KevinMarks, gRegorLove and tantek joined the channel
#
@ilnnazfier9835
Microformats make you more attractive to women. Or men. Or even dogs. Attractive. Yeah.
(twitter.com/_/status/790621434238341121)
KevinMarks, KevinMarks_, sagerdearia and tantek joined the channel
#
jonnybarnes
how should location info thats just an area as oppose to an actual place be marked up? https://github.com/snarfed/bridgy/issues/706#issuecomment-255851871
#
tantek
jonnybarnes great question
#
tantek
the larger challenge is that even the terms like "area" and "place" are so heavily overloaded as to potentially be indistinguishable, and mean different things to different people
#
tantek
by "just an area" do you mean a literal area? like a polygon?
#
tantek
by "actual place" do you mean a venue?
#
gRegorLove
How about the code in the first question http://microformats.org/wiki/h-geo#FAQ
#
gRegorLove
data-value pattern, then the text can be something more human-friendly
#
jonnybarnes
basically, “Salford, UK“ doesn’t warrent an h-card does it?
#
jonnybarnes
so how should it be marked up?
#
jonnybarnes
gRegorLove: thats what I’m thinking of doing
#
jonnybarnes
add the co-ords in data tags for machine reading
#
jonnybarnes
then giving a name for humans derived from a reverse-geo lookup
#
gRegorLove
You could potentially put the human-readable name in the one data tag and leave the other empty, though maybe that's considered a bad practice
#
tantek
jonnybarnes, interesting wasy of phrasing the question "doesn’t warrent an h-card" - implying there's a hierarchy (or ordering) of different microformats, from simpler to more extensive
#
gRegorLove
<data class="p-longitude"...>Salford, UK</data> <data class="p-latitude".../>
#
tantek
jonnybarnes: fundamentally the "how should it be marked up" question requires a real world example of the location information in plain user visible text, in context, to help determine what a good (least intrusive) method of marking it up would be
#
tantek
reasoning by abstract example is a poor substitute for that, and often results in abstract markup that works ok in isolation but not in context of real world content / pages
KevinMarks joined the channel
#
tantek
jonnybarnes, so let's start with, what location information are you displaying on your page? (on what page?)
#
jonnybarnes
okay, my notes that aren’t checkins but have geo-data simple end with “in {town/city}, {country}
#
tantek
like?
#
tantek
(aside: gRegorLove that h-geo FAQ likely needs updating with the nuances I just pointed out above about context / real world example driven design)
#
jonnybarnes
I haven‘t pushed the latest makrup to live yet, but here’s my latest note: https://jonnybarnes.uk/notes/CB
#
jonnybarnes
that’s not a checkin to a venue at all
#
tantek
jonnybarnes - is it plain text? is it a clickable map link? is there an embedding of a map, thumbnail or otherwise?
#
jonnybarnes
not at the moment
#
jonnybarnes
its just plain text
#
tantek
cool - that's an excellent way to start
#
jonnybarnes
I’m thinking of moving the actual lat/lng values into data tags
#
tantek
do you have any UX/design-based thoughts about how you may want to evolve it in terms of interactivity?
#
jonnybarnes
what do they add for a human reading the note?
#
jonnybarnes
they just look messy
#
tantek
nevermind the markup thoughts for now - that's plumbing
#
tantek
UX / interaction thoughts first
#
tantek
jonnybarnes - a plain text location (named or otherwise) may seem "abstract" to the average reader - they may have no way to relate to it unles they're already familiar with the city/state/country
#
jonnybarnes
so I also have places, with maps: https://jonnybarnes.uk/notes/Bs
#
tantek
(certainly very few humans relate to lat long #s)
#
jonnybarnes
the next step with them is to get all the notes also from that place
#
tantek
a-ha like a location-tag
#
jonnybarnes
but for general geo info
#
jonnybarnes
I just want the name of town/city its in
#
tantek
would clicking on that location text then show a list of all the posts made at that location?
#
jonnybarnes
not currently, it just gives a brief description of the place
#
jonnybarnes
but it shouldn’t be too hard to get all the notes also associated with that place
#
tantek
I understand not currently - hence I'm asking if that's your future thinking
#
tantek
thinking through design plans like this helps better figure out what kind of markup will best support current and soon design plans
#
jonnybarnes
getting all my notes in “Salford, UK” would be harder
#
tantek
I'm confused. Is Salford not a "place"?
#
jonnybarnes
from the h-adr wiki: “For named addresses, e.g. people or venues, use h-card.”
#
jonnybarnes
I’d suggest Salford should be marked up with h-adr
#
jonnybarnes
it is a place, but is it specific enough for h-card
#
tantek
yes, that's a reasonable conclusion
KevinMarks joined the channel
#
tantek
but as I noted to gRegorLove, I likely need to update the h-adr documentation to reflect more nuances
#
tantek
in particular, we've learned a lot about this problem through the indieweb pursuit of figuring out venues in particular
#
tantek
a venue has a more specific meaning than a "place"
#
tantek
whether something is specific enough for an h-card is a very good question and I think we're still figuring that out case by case
#
jonnybarnes
I was thinking of this for my notes that aren’t at venues: https://github.com/snarfed/bridgy/issues/706#issuecomment-255851871
#
tantek
as you said / implied, if an h-adr is sufficient that's likely the way to go
#
tantek
the reason I asked about the display is that when you show a map, you're essentially showing a visual representation of the lat long
#
tantek
and could even use <object> that way to show the interactive map, with fallback plain text coordinates inside, marked up with microformats properties
#
jonnybarnes
whos using <object> for a map?
#
tantek
it should work for embedding anything you would use iframe for
#
tantek
or img
#
tantek
and if it doesn't, I want to know about it :)
#
tantek
how does your site decide to show a map or not for a post? (those two example you gave - CB vs Bs)
#
jonnybarnes
the one in Salford just has associated latitude/longitude values with the note, that just gets turned into text via nominatim
#
jonnybarnes
I also have actuak venues at https://jonnybarnes.uk/places
#
jonnybarnes
I can "attach" them to the note
#
tantek
with p-location h-card?
#
jonnybarnes
if so my site adds a map of the venue
#
tantek
is it an explicit design decision to not add a map of a city/state/country by itself? e.g. coarser? or just an accident of order of implementation?
#
jonnybarnes
explicit, for a map I can center it to a specific point, Salford has 220,000 residents, where do I center the map?
#
jonnybarnes
a venue has a specific location to center to
KevinMarks_ and sagerdearia joined the channel
#
tantek
jonnybarnes - if you zoom out far enough, a city looks like a point as well
#
tantek
hence a *coarse* map
KevinMarks and miklb joined the channel
#
tantek
so, checkins need a spacetime coordinate
#
tantek
to indicate the user explicit intent of "I am/was at this location [at this time - autofilled, or past noted]"
#
tantek
then a checkin could be represented by an h-entry with a "p-checkin" of that spacetime coordinate
#
tantek
would h-entry p-checkin h-event be too much of a hack?
#
tantek
where the check-in time is noted as the dt-start of the event?
#
tantek
(events can already only have a dt-start, dt-end is optional of course)
#
aaronpk
that would mean the location would be the location of the h-entry?
#
tantek
is that overkill? the venue ends up being even deeper
#
tantek
the location of the h-entry is where they were when they published the checkin
#
aaronpk
oops i meant h-event
#
tantek
the location of the (p-checkin) is the p-location of the h-event inside
#
tantek
which itself is thus likely an h-card for a venue
#
tantek
and is that getting too nesty?
#
aaronpk
that makes sense, but i'm a little worried that buries it too deep
#
tantek
h-entry p-checkin h-event p-location h-card
#
aaronpk
deeply nested by itself isn't so much a problem as when there are multiple places the data could be
#
aaronpk
if that's the *only* place a consumer should expect to find the location of the checkin that wouldn't be terrible
#
tantek
yes that would be the only place
#
tantek
an alternative would be relying on a collection of tags
#
tantek
but that's once again imprecise and doesn't indicate user intent of a checkin
#
tantek
e.g. a person-tag of themselves, a location-tag of the venue, a datetime-tag of time of checkin
#
tantek
but lots of things could have that set of *-tags
#
tantek
that aren't necessarily checkins
#
tantek
e.g. once again, photos
#
@jonnybarnes
Getting lots of stuff done on my site ?, including much better #microformats markup (https://t.co/XxlHsDgYrI)
(twitter.com/_/status/790694034360655872)
sagerdearia, bear, edsu_, Garbee, aaronpk, JonathanNeal and iwaim joined the channel