With this:
3.3.1. Location
Location context describes the location where the user was at the time
the activity was performed. This may be an accurate geographic
coordinate, a street address, a free-form location name or a
combination of these.
Geographic coordinates can be included as a geo:point element as a
direct child of the activity entry, as described by the GeoRSS
specification.
<geo:point>33.9777 -118.4351</geo:point>
Addresses can be included using a poco:address element. Please see
http://portablecontacts.net/draft-spec.html#address_element
<poco:address>
<poco:locality>Marina del rey, CA</poco:locality>
<poco:postalCode>90292</poco:postalCode>
<poco:country>US</poco:country>
</poco:address>
Also note that if you don’t have the location of the user at the time
of the action or prefer not to syndicate this information for security
reasons you can also provide the published general location for the
user inside the actor element.
For free form addresses please use poco:formatted field. Example:
<poco:formatted>My House in SF< poco:formatted>
This was one of my TODOs from last meeting so I wanted to circulate.
Thanks
Monica
ps - all this is available on our real time stream and we have a
contest coming up to see the best use http://www.myspace.com/developerchallenge
--
You received this message because you are subscribed to the Google Groups "Activity Streams" group.
To post to this group, send email to activity...@googlegroups.com.
To unsubscribe from this group, send email to activity-strea...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/activity-streams?hl=en.
See some discussion on from Status.net at http://status.net/wiki/LocationPlan
with Geonames and OSM as examples.
We are thinking about how we can encode places in activity streams for
or next release in January, this discussion is timely.
--
Sylvain Carle / Praized
> +1.
>
> This is a good replacement for that section.
>
> I appreciate the addition of the PoCo schema.
>
> Chris
>
> > activity-strea...@googlegroups.com<activity-streams%2Bunsu...@googlegroups.com>
I guess this could be represented by putting the location elements in
the photo object itself rather than the activity of posting the photo.
Though this does get more fuzzy when people take photos on their mobile
devices and post them immediately. The distinction betwen activity
location and photo location gets a lot more blurry in that situation.
There should be room in the spec to allow privacy. geo:location makes no
allowances for this, poco is an addess which is a very specific
construct. Maybe AS should have its own element?
Bill
Monica Keller wrote:
> Does anyone have a problem replacing
> http://martin.atkins.me.uk/specs/activitystreams/activityschema#anchor17
>
> With this:
>
> 3.3.1. Location
> Location context describes the location where the user was at the time
> the activity was performed. This may be an accurate geographic
> coordinate, a street address, a free-form location name or a
> combination of these.
> Geographic coordinates can be included as a geo:point element as a
> direct child of the activity entry, as described by the GeoRSS
> specification.
> <geo:point>33.9777 -118.4351</geo:point>
> Addresses can be included using a poco:address element. Please see
> http://portablecontacts.net/draft-spec.html#address_element
> <poco:address>
> <poco:locality>Marina del rey, CA</poco:locality>
> <poco:postalCode>90292</poco:postalCode>
> <poco:country>US</poco:country>
> </poco:address>
> Also note that if you don�t have the location of the user at the time
> of the action or prefer not to syndicate this information for security
> reasons you can also provide the published general location for the
> user inside the actor element.
> For free form addresses please use poco:formatted field. Example:
> <poco:formatted>My House in SF< poco:formatted>
>
> This was one of my TODOs from last meeting so I wanted to circulate.
>
> Thanks
> Monica
>
>
> ps - all this is available on our real time stream and we have a
> contest coming up to see the best use http://www.myspace.com/developerchallenge
>
>
>
>
> Also note that if you don’t have the location of the user at the time
> of the action or prefer not to syndicate this information for security
> reasons you can also provide the published general location for the
> user inside the actor element.
> For free form addresses please use poco:formatted field. Example:
> <poco:formatted>My House in SF< poco:formatted>
>
> This was one of my TODOs from last meeting so I wanted to circulate.
>
> Thanks
> Monica
>
>
> ps - all this is available on our real time stream and we have a
> contest coming up to see the best use http://www.myspace.com/developerchallenge
>
>
>
>
> --
>
> You received this message because you are subscribed to the Google Groups "Activity Streams" group.
> To post to this group, send email to activity...@googlegroups.com.
> To unsubscribe from this group, send email to activity-strea...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/activity-streams?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Activity Streams" group.
To post to this group, send email to activity...@googlegroups.com.
To unsubscribe from this group, send email to activity-strea...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/activity-streams?hl=en.
I can't think of even one circumstance where I would consider both
locations "interesting". Either I'm interested in where the object
was created, or I'm interested in where the actor is located, but I
don't think there's much value in knowing both if they're different,
and I'd be worried about confusing people if there were two locations,
especially if they're the same or very, very close together but not
identical. I see the value in making the distinction, and I think
that perhaps recommending against a single entry containing multiple
locations would be a bit much, but in that case, I'd like to see a
side-note along the lines of: "Including a location for both an actor
and an object is uncommon." Because it will be.
-Bob
The format that I worked on with AP and Google News is set up to deal
with this because location matters.... it was something that at first
they didn't see the need for but for news.. you do need it. Bylines
and author location are often one place, and subject location is
another.
mary
> --
>
> You received this message because you are subscribed to the Google
> Groups "Activity Streams" group.
> To post to this group, send email to activity-
> str...@googlegroups.com.
> To unsubscribe from this group, send email to activity-streams
> +unsub...@googlegroups.com.
I can't think of even one circumstance where I would consider both
> Being able to distinguish between the actor's location and the object's
> location seems to me to be very valuable and important, and something that
> we can clarify over previous implementations.
locations "interesting". Either I'm interested in where the object
was created, or I'm interested in where the actor is located, but I
don't think there's much value in knowing both if they're different,
and I'd be worried about confusing people if there were two locations,
especially if they're the same or very, very close together but not
identical.
Oh yeah, definitely. But the "interesting" location there is the
story location, not the author location. You could include the author
location, and it wouldn't be ambiguous, but for any application that
consumes the activity stream, they now have to figure out how to
present the location information to the user. If the author location
and story location are the same, and they show both locations it looks
like they're repeating themselves. If the locations are different and
they don't differentiate them somehow, it might not be clear why the
activity stream consumer has gone and shown a map of Chicago next to a
story about Tehran. Clearly, this is not an easy problem to solve,
but I think in the short term it might be a good idea to gently
encourage people not to make the work of the activity stream consumer
too hard by including more than one location in an entry.
-Bob
> Actually this comes up with news stories all the time.. andOh yeah, definitely. But the "interesting" location there is the
> presumably blog posts given some way to communicate locations in a
> meaningful way.
>
> The format that I worked on with AP and Google News is set up to deal
> with this because location matters.... it was something that at first
> they didn't see the need for but for news.. you do need it. Bylines
> and author location are often one place, and subject location is
> another.
story location, not the author location. You could include the author
location, and it wouldn't be ambiguous, but for any application that
consumes the activity stream, they now have to figure out how to
present the location information to the user. If the author location
and story location are the same, and they show both locations it looks
like they're repeating themselves. If the locations are different and
they don't differentiate them somehow, it might not be clear why the
activity stream consumer has gone and shown a map of Chicago next to a
story about Tehran.
Privacy is independent of format, but the address structure is hierarchic so you could supply just the less exact parts to partially obfuscate ( just as you can round Geo points to lower precision)
On Dec 22, 2009 12:49 PM, "Bill de hOra" <bi...@dehora.net> wrote:> Geographic coordinates can be included as a geo:point element
There should be room in the spec to allow privacy. geo:location makes no
allowances for this, poco is an addess which is a very specific
construct. Maybe AS should have its own element?
Bill
Monica Keller wrote: > Does anyone have a problem replacing > http://martin.atkins.me.uk/specs/acti...
Chris I like the idea of conveying location at the actor or object
level and not necessarily at the activity level.
Seems more straightforward. Bob even tho not all activities will have
both locations I think its valuable to distinguish whether the
location is for the object or the actor. Sounds like Mary has some
good examples of instances were both are used too.
At MySpace this is what we are doing so far:
In the real time stream api we provide the actors location down to the
city level
For events we put the location at the object level. In this case the
object is the event
The same should be done when reviewing venues (places)
Sylvain did you see this part of the spec which includes id, name and
uri for the venue
http://martin.atkins.me.uk/specs/activitystreams/activityschema#anchor15
I believe the only challenge left is how one would use this place
object type in lieu of poco:address or geo:point
Seems like we would need to create a new element to wrap the
properties of place.
Discussed this a bit with Martin but we didnt come to a conclusion
yet.
Should it be target ? context ? location?
Also do we want to address this for the 1st implementors draft ?
Thanks for the help guys
On Dec 22, 6:41 pm, Kevin Marks <kevinma...@gmail.com> wrote:
> Privacy is independent of format, but the address structure is hierarchic
> so you could supply just the less exact parts to partially obfuscate ( just
> as you can round Geo points to lower precision)
>
I think a potentially common case is someone sitting at a computer and writing a review of a venue or composing an invitation to an event.
FWIW--
--Rob
--
I don't understand this- what do you mean?
> the address structure is
> hierarchic
Doesn't matter, it's still an address, which is a very specific
construct for a very general construct like an activity. Should all
activities imply an poco:address or a geo:location?
> so you could supply just the less exact parts to partially
Then it stops being an address and starts being a place. If
"poco:address" isn't simply an address and is designed to to describe a
place, then I'd understand how it can be used for AS.
Bill
Kevin Marks wrote:
> Privacy is independent of format, but the address structure is
> hierarchic so you could supply just the less exact parts to partially
> obfuscate ( just as you can round Geo points to lower precision)
>
>> On Dec 22, 2009 12:49 PM, "Bill de hOra" <bi...@dehora.net
>> <mailto:bi...@dehora.net>> wrote:
>>
>> > Geographic coordinates can be included as a geo:point element
>>
>> There should be room in the spec to allow privacy. geo:location makes no
>> allowances for this, poco is an addess which is a very specific
>> construct. Maybe AS should have its own element?
>>
>> Bill
>>
>> Monica Keller wrote: > Does anyone have a problem replacing >
>> http://martin.atkins.me.uk/specs/acti...
>>
> Privacy is independent of format,
I don't understand this- what do you mean?
Doesn't matter, it's still an address, which is a very specific
construct for a very general construct like an activity. Should all
activities imply an poco:address or a geo:location?
> so you could supply just the less exact parts to partiallyThen it stops being an address and starts being a place. If
"poco:address" isn't simply an address and is designed to to describe a
place, then I'd understand how it can be used for AS.
I agree that the location where the actor was when the activity took
place and the location where the object is (or, more accurately, the
location of the real-world object that our digital artifact depicts or
represents) should be kept distinct.
However, I disagree that the right place to put this is inside the actor
object. In most implementations I would expect that actor object to be
produced from the *current state* of the actor at the time of feed
rendering, not from the state the actor had at the time the activity
took place. In other words, if I do something in Los Angeles but return
to San Francisco before you fetch my feed my actor object would tell you
that my current location is San Francisco even if you observe it in the
context of an activity that took place during my LA trip.
The activity:context element was devised to provide somewhere to put
this additional orthogonal context information about an activity, and I
think this design works well for the current use-cases. However, we
should be careful to define how locations are represented in such a way
that the same representation can be used both in the activity context
and inside an object that itself has a location.
One idea I discussed briefly with Monica yesterday was to define a new
"location" element which is the container for the various different
location properties we've used so far:
<somens:location>
<georss:blahblah>...</georss:blahblah>
<poco:something>...</poco:something>
....
</somens:location>
That element could be used either as a direct child of activity:context
inside an activity entry or as a direct child of an object element whose
type allows for a location.
Monica mentioned that when the location is actually something like a bar
or restaurant she'd like to actually refer to the real object that
describes that venue. To allow for this we can say that the content
model of somens:place can optionally be the content of an activity
streams place object, like this:
<somens:location>
<id>tag:blahblah.example.com,2009:venue-2342</id>
<title>Hotel Utah</title>
<activity:object-type>
http://activitystrea.ms/schema/1.0/place
</activity:object-type>
<georss:blahblah>...</georss:blahblah>
<poco:something>...</poco:something>
....
</somens:location>
So, to summarize, we'd use the georss and poco elements *only* as direct
children of the place object type. For other things which can have a
location associated with them, such as activity context, events and
photos, we'll use the somens:location element whose content is a place
object where the usual object-required properties of id, title,
publication time and permalink are optional. If they are not provided,
this is an "anonymous" location.
I think this approach rationalizes things somewhat, at the expense of
adding another container element. But the advantage here is that the
content of this new element can (in theory, at least) be processed using
the same code that would process a normal place object, assuming that an
implementation is able to deal with a place object that doesn't have an id.
My main concern is whether today's consumer code would need to be
drastically redesigned to support this idea of an anonymous object. I
know my toy consumer implementation can't deal with it as-is, but I have
a rough idea of what I'd change to make it work. Any thoughts from other
consumer implementors?
2- Also if we do want to be explicit then we can allow location also
at the activity level. So I can say Im from SF but I was at MySpace HQ
in LA writing a review about a restaurant in Columbus, OH
I think *only* when describing the exact place where the action is
happening (which would be done at the activity level) do we need a
wrapping xml element like the proposed somens:location tag. Altho I
would just go for the activity namespace
activity:location will be an activity object with object type Place
residing at the atom:entry level
3- This allows you to always have a parser grab the geo or poco
address fields from within an activity object (because actor already
is)
For the first draft we can leave it as is allowing users to put geo
and poco fields on any activity:object whether its actor, main object,
target, etc and for the next version we can add this activity:location
similar to activity:target which describes the physical location of
the action only if different than the objects and needed to be
conveyed ?
> consumer implementors?- Hide quoted text -
>
> - Show quoted text -
For the first draft we can leave it as is allowing users to put geo
and poco fields on any activity:object whether its actor, main object,
target, etc and for the next version we can add this activity:location
similar to activity:target which describes the physical location of
the action only if different than the objects and needed to be
conveyed ?
--
I invented it to give us a container in which we could nest a "place"
object. My goal was to be able to re-use the place object type for all
situations where a location is associated with something.