<?xml version="1.0" encoding="UTF-8"?>

<xwikidoc>
<web>Main.Demos</web>
<name>TouchnLocate</name>
<language></language>
<defaultLanguage>en</defaultLanguage>
<translation>0</translation>
<parent>Main.Demos</parent>
<creator>xwiki:XWiki.calmant</creator>
<author>xwiki:XWiki.calmant</author>
<contentAuthor>xwiki:XWiki.calmant</contentAuthor>
<creationDate>1282835022000</creationDate>
<date>1283696141000</date>
<contentUpdateDate>1283696141000</contentUpdateDate>
<version>1.10</version>
<title>Touch'n Locate Demonstration</title>
<template></template>
<attachment>
<filename>poi1.png</filename>
<filesize>20351</filesize>
<author>xwiki:XWiki.calmant</author>
<date>1283695891000</date>
<version>1.1</version>
<comment></comment>
</attachment>
<attachment>
<filename>poi2.png</filename>
<filesize>27398</filesize>
<author>xwiki:XWiki.calmant</author>
<date>1283695898000</date>
<version>1.1</version>
<comment></comment>
</attachment>
<attachment>
<filename>poi3.png</filename>
<filesize>24417</filesize>
<author>xwiki:XWiki.calmant</author>
<date>1283695902000</date>
<version>1.1</version>
<comment></comment>
</attachment>
<attachment>
<filename>map.png</filename>
<filesize>50427</filesize>
<author>xwiki:XWiki.calmant</author>
<date>1282835175000</date>
<version>1.1</version>
<comment></comment>
</attachment>
<attachment>
<filename>reverse.png</filename>
<filesize>23208</filesize>
<author>xwiki:XWiki.calmant</author>
<date>1282835194000</date>
<version>1.1</version>
<comment></comment>
</attachment>
<attachment>
<filename>tag_info.png</filename>
<filesize>26967</filesize>
<author>xwiki:XWiki.calmant</author>
<date>1282835239000</date>
<version>1.1</version>
<comment></comment>
</attachment>
<content>1 Touch'n Locate demonstration

#toc("" "" "")

1.1 Short description

This demonstration presents the usage of NFC phones and RFID tags to present locations and associated points of interest to the user.

This demonstration is based on the [Team TouchKey&gt;http://team.touchkey.fr/] code.

1.1. User documentation

After touching a tag, the user can :
* View the location on Google Map
{image:map.png}

* Reverse geocode the GPS coordinates to transform in a readable address
{image:reverse.png}

* Search for points of interest near the embedded location
By entering key words...

{image:poi1.png}

... then selecting a result ...

{image:poi2.png}

... and finally by reading the point of interest details :

{image:poi3.png}

* View the tag data
{image:tag_info.png}

1.1 Technical documentation

Locations can be stored in two different ways :
* in a Locate record type : urn:nfc:wkt:L
** fields are stored in their binary representation
** fields order : latitude, longitude, altitude, bearing
** This record type is smallest possible one
* in a URI record type : urn:nfc:wkt:U
** URI format : http://loc/latitude/longitude/altitude/bearing
** This record type can be written directly by most NFC devices

Altitude and bearing fields are optional.

1.1 Dependencies

* [Team TouchKey&gt;http://team.touchkey.fr/] code for Google Map interactions
* [JSON for JavaME&gt;https://meapplicationdevelopers.dev.java.net/source/browse/meapplicationdevelopers/demobox/mobileajax/lib/json/] for JSON results parsing.

1.1 Tips for future improvements

* Cache maps in memory, to bring them back faster
* Improve the points of interest search area</content>
<renderedcontent>&lt;h2 class="heading-1"&gt;&lt;span id="HTouch27nLocatedemonstration"&gt;Touch'n Locate demonstration&lt;/span&gt;&lt;/h2&gt;&lt;p class="paragraph"/&gt;            &lt;ul&gt;
          &lt;li&gt;&lt;a href="#HShortdescription"&gt; Short description&lt;/a&gt; 
      &lt;li&gt;&lt;a href="#HTechnicaldocumentation"&gt; Technical documentation&lt;/a&gt; 
      &lt;li&gt;&lt;a href="#HDependencies"&gt; Dependencies&lt;/a&gt; 
      &lt;li&gt;&lt;a href="#HTipsforfutureimprovements"&gt; Tips for future improvements&lt;/a&gt; 
      &lt;/ul&gt; 
&lt;h3 class="heading-1-1"&gt;&lt;span id="HShortdescription"&gt;Short description&lt;/span&gt;&lt;/h3&gt;&lt;p class="paragraph"/&gt;This demonstration presents the usage of NFC phones and RFID tags to present locations and associated points of interest to the user.&lt;p class="paragraph"/&gt;This demonstration is based on the &lt;span class="wikiexternallink"&gt;&lt;a href="http://team.touchkey.fr/"&gt;&amp;#84;eam TouchKey&lt;/a&gt;&lt;/span&gt; code.&lt;p class="paragraph"/&gt;1.1. User documentation&lt;p class="paragraph"/&gt;After touching a tag, the user can :
&lt;ul class="star"&gt;
&lt;li&gt;View the location on Google Map&lt;/li&gt;
&lt;/ul&gt;&lt;img src="/xwiki/bin/download/Main.Demos/TouchnLocate/map.png" alt="map.png" /&gt;
&lt;ul class="star"&gt;
&lt;li&gt;Reverse geocode the GPS coordinates to transform in a readable address&lt;/li&gt;
&lt;/ul&gt;&lt;img src="/xwiki/bin/download/Main.Demos/TouchnLocate/reverse.png" alt="reverse.png" /&gt;
&lt;ul class="star"&gt;
&lt;li&gt;Search for points of interest near the embedded location&lt;/li&gt;
&lt;/ul&gt;By entering key words...&lt;p class="paragraph"/&gt;&lt;img src="/xwiki/bin/download/Main.Demos/TouchnLocate/poi1.png" alt="poi1.png" /&gt;&lt;p class="paragraph"/&gt;&amp;#8230; then selecting a result ...&lt;p class="paragraph"/&gt;&lt;img src="/xwiki/bin/download/Main.Demos/TouchnLocate/poi2.png" alt="poi2.png" /&gt;&lt;p class="paragraph"/&gt;&amp;#8230; and finally by reading the point of interest details :&lt;p class="paragraph"/&gt;&lt;img src="/xwiki/bin/download/Main.Demos/TouchnLocate/poi3.png" alt="poi3.png" /&gt;
&lt;ul class="star"&gt;
&lt;li&gt;View the tag data&lt;/li&gt;
&lt;/ul&gt;&lt;img src="/xwiki/bin/download/Main.Demos/TouchnLocate/tag_info.png" alt="tag_info.png" /&gt;
&lt;h3 class="heading-1-1"&gt;&lt;span id="HTechnicaldocumentation"&gt;Technical documentation&lt;/span&gt;&lt;/h3&gt;&lt;p class="paragraph"/&gt;Locations can be stored in two different ways :
&lt;ul class="star"&gt;
&lt;li&gt;in a Locate record type : urn:nfc:wkt:L&lt;ul class="star"&gt;
&lt;li&gt;fields are stored in their binary representation&lt;/li&gt;
&lt;li&gt;fields order : latitude, longitude, altitude, bearing&lt;/li&gt;
&lt;li&gt;This record type is smallest possible one&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;in a URI record type : urn:nfc:wkt:U&lt;ul class="star"&gt;
&lt;li&gt;URI format : &lt;span class="nobr"&gt;&lt;a href="http://loc/latitude/longitude/altitude/bearing"&gt;&amp;#104;ttp://loc/latitude/longitude/altitude/bearing&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;This record type can be written directly by most NFC devices&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;Altitude and bearing fields are optional.
&lt;h3 class="heading-1-1"&gt;&lt;span id="HDependencies"&gt;Dependencies&lt;/span&gt;&lt;/h3&gt; 
&lt;ul class="star"&gt;
&lt;li&gt;&lt;span class="wikiexternallink"&gt;&lt;a href="http://team.touchkey.fr/"&gt;&amp;#84;eam TouchKey&lt;/a&gt;&lt;/span&gt; code for Google Map interactions&lt;/li&gt;
&lt;li&gt;&lt;span class="wikiexternallink"&gt;&lt;a href="https://meapplicationdevelopers.dev.java.net/source/browse/meapplicationdevelopers/demobox/mobileajax/lib/json/"&gt;&amp;#74;SON for JavaME&lt;/a&gt;&lt;/span&gt; for JSON results parsing.&lt;/li&gt;
&lt;/ul&gt;&lt;h3 class="heading-1-1"&gt;&lt;span id="HTipsforfutureimprovements"&gt;Tips for future improvements&lt;/span&gt;&lt;/h3&gt; 
&lt;ul class="star"&gt;
&lt;li&gt;Cache maps in memory, to bring them back faster&lt;/li&gt;
&lt;li&gt;Improve the points of interest search area&lt;/li&gt;
&lt;/ul&gt;
</renderedcontent>
</xwikidoc>