location: Difference between revisions

From IndieWeb
(add stationary to motion type, otherwise looks good)
No edit summary
Line 51: Line 51:
* velocity (perhaps with a specific motion vector in 2 or 3 dimensions)
* velocity (perhaps with a specific motion vector in 2 or 3 dimensions)
* mode of motion / transport (e.g. walking, running, bicycling, driving, stationary)
* mode of motion / transport (e.g. walking, running, bicycling, driving, stationary)
== Brainstorming ==
[http://indiewebcamp.com/note#Location Location in Notes] discusses some of the issues in adding a location to a note.
The two most common visual elements in presenting location are a textual description of the location and/or a map.
=== Textual Description ===
There is an issue of specificity. With all of the details possible in a address, relevancy can be reduced if you add in all the possible details.
For example, to use the site of IWC Cambridge...
'''The Ray and Maria Stata Center, 32 Massachusetts Institute of Technology, Vassar Street, MIT, Cambridge, Middlesex County, Massachusetts, USA, 02139-4309'''
The most common textual description is merely the city, state, and country....Cambridge, Massachusetts, USA.


== See Also ==
== See Also ==

Revision as of 03:57, 6 July 2015


location is a key aspect of checkin and event posts. It's also sometimes an aspect of posts in general, e.g. where a note or photo/video was posted from. The aspect of location is sometimes referred to as geo for short.

Enabling Technologies

How

How to determine the location of a microformat

To accommodate various different location use-cases, there are multiple places within a microformat structure where location data can be placed. Given a microformat, to determine it’s location:

  • create a stack of property maps where location data might be found, in order of priority
  • for each potential location property, search the stack for a valid property value

In more detail (pseudocode):

  • given a microformat structure mf, to find the location it represents:
  • let location-sources be a list of microformats, containing the following, in this order:
    • mf
    • if mf has a location property which is a microformat, that value
    • if mf has an adr property which is a microformat, that value
    • if mf has a geo property:
      • if the geo property is a microformat, that value
      • else if the geo property is a string, parse it as a geo: URL and append a derived microformat containing the properties of the geo: URL: latitude+longitude if they’re both present, and altitude if it was present
  • for each of the following location properties, search the property map stack in order of priority for a valid value. As soon as one is found, consider that the value. If none are found, the microformat does not have this property
    • street-address
    • extended-address
    • post-office-box
    • locality
    • region
    • postal-code
    • country-name
    • label
    • latitude
    • longitude
    • altitude

Motion

Location information may also contain indication about motion, e.g. a person at a location, but in motion, by some method. Such information in practice includes things like:

  • velocity (perhaps with a specific motion vector in 2 or 3 dimensions)
  • mode of motion / transport (e.g. walking, running, bicycling, driving, stationary)

Brainstorming

Location in Notes discusses some of the issues in adding a location to a note.

The two most common visual elements in presenting location are a textual description of the location and/or a map.

Textual Description

There is an issue of specificity. With all of the details possible in a address, relevancy can be reduced if you add in all the possible details.

For example, to use the site of IWC Cambridge...

The Ray and Maria Stata Center, 32 Massachusetts Institute of Technology, Vassar Street, MIT, Cambridge, Middlesex County, Massachusetts, USA, 02139-4309

The most common textual description is merely the city, state, and country....Cambridge, Massachusetts, USA.


See Also