PIDF-LO

PIDF-LO: RFC 4119 (RFC 5139, RFC 5491), and for civic addresses refer to RFC 5774.

Example PIDF-LO document:

<?xml version="1.0" encoding="UTF-8"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10"
entity="pres:sample@example.com">
<tuple id="0815">
<status>
<gp:geopriv>
<gp:location-info>
<!--  location information is inserted here -->
</gp:location-info>
<gp:usage-rules>
<gp:retransmission-allowed>
no
</gp:retransmission-allowed>
<gp:retention-expiry>
2010-08-10T09:00:10+02:00
</gp:retention-expiry>
</gp:usage-rules>
</gp:geopriv>
</status>
<timestamp>2010-08-10T08:31:00+02:00</timestamp>
</tuple>
</presence>

A very nice tool for displaying PIDF-LO documents on a map is available at: http://held-location.sourceforge.net/held_js/pidflo.html! Simply copy & paste your PIDF-LO document and see it on the map.

Example HELD location response (e.g. for use for the practical part of the book):

<?xml version="1.0" encoding="UTF-8"?>
<locationResponse
xmlns="urn:ietf:params:xml:ns:geopriv:held">
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10"
xmlns:gml=
"urn:opengis:specification:gml:schema-xsd:feature:v3.0"
entity="pres:sample@example.com">
<tuple id="xyz">
<status>
<gp:geopriv>
<gp:location-info>
<gml:location>
<gml:Point gml:id="point1" srsName="urn:ogc:def:crs:EPSG::4326">
<gml:pos>35.2225 -80.8449</gml:pos>
</gml:Point>
</gml:location>
</gp:location-info>
<gp:usage-rules/>
<method>wiremap</method>
</gp:geopriv>
</status>
<timestamp>2011-01-01T04:41:59Z</timestamp>
</tuple>
</presence>
</locationResponse>

A locationResponse contains a PIDF-LO document.