<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Mobile Phone tracking with a Nokia N95 &amp; MWS</title>
	<atom:link href="http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws/feed" rel="self" type="application/rss+xml" />
	<link>http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws</link>
	<description>A weblog. A website. A geospatial miscellany...</description>
	<lastBuildDate>Fri, 17 Feb 2012 01:25:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Christine</title>
		<link>http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws/comment-page-1#comment-10157</link>
		<dc:creator>Christine</dc:creator>
		<pubDate>Thu, 09 Oct 2008 10:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws#comment-10157</guid>
		<description>Hey Rob,

Thank you very very much. That was what I was looking for. But I still can&#039;t seem to get it work correctly. It still shows Edinburgh even though my XML file gives other coordinates.  I&#039;ll look into and hopefully find a solution. My project will use the coordinates to return &quot;news&quot; that are closer than xxx metres from a SQL database , so not a big problem if i can&#039;t get the map to work. I&#039;ll give you a link if you&#039;re interested, when its been developed a bit more. 

- Christine</description>
		<content:encoded><![CDATA[<p>Hey Rob,</p>
<p>Thank you very very much. That was what I was looking for. But I still can&#8217;t seem to get it work correctly. It still shows Edinburgh even though my XML file gives other coordinates.  I&#8217;ll look into and hopefully find a solution. My project will use the coordinates to return &#8220;news&#8221; that are closer than xxx metres from a SQL database , so not a big problem if i can&#8217;t get the map to work. I&#8217;ll give you a link if you&#8217;re interested, when its been developed a bit more. </p>
<p>- Christine</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws/comment-page-1#comment-10145</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Wed, 08 Oct 2008 14:02:18 +0000</pubDate>
		<guid isPermaLink="false">http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws#comment-10145</guid>
		<description>Hi Christine,

The contents of the php file below, as you suspect you just need to put in your own mobilesite path.  Hope that helps,

Rob

&lt;?php
//must have the header otherwise response is not recognised as XML
header(&#039;Content-Type:text/xml&#039;);
$doc = new DOMDocument();

$doc-&gt;load( &#039;https://robdunfey.mymobilesite.net/rest/presence/location&#039; );

$locations = $doc-&gt;getElementsByTagName( &quot;location&quot; );

$returndoc = new DOMDocument(&#039;1.0&#039;);
// we want a nice output
$returndoc-&gt;formatOutput = true;
  
foreach( $locations as $location )
{
  $latitudes = $location-&gt;getElementsByTagName( &quot;latitude&quot; );
  $latitude = $latitudes-&gt;item(0)-&gt;nodeValue;
  
  $longitudes = $location-&gt;getElementsByTagName( &quot;longitude&quot; );
  $longitude = $longitudes-&gt;item(0)-&gt;nodeValue;

  $root = $returndoc-&gt;createElement(&#039;location&#039;);
  $root = $returndoc-&gt;appendChild($root);

  $marker = $returndoc-&gt;createElement(&#039;marker&#039;);
  $marker = $root-&gt;appendChild($marker);
  
  $marker-&gt;setAttribute(&quot;lat&quot;, &quot;$latitude&quot;);
  $marker-&gt;setAttribute(&quot;lng&quot;, &quot;$longitude&quot;);
  
  //$coords = $doc-&gt;createTextNode(&quot;$latitude, $longitude&quot;);
  //$coords = $marker-&gt;appendChild($coords);

  }
  
  echo $returndoc-&gt;saveXML() . &quot;\n&quot;;
  
?&gt;</description>
		<content:encoded><![CDATA[<p>Hi Christine,</p>
<p>The contents of the php file below, as you suspect you just need to put in your own mobilesite path.  Hope that helps,</p>
<p>Rob</p>
<p>< ?php<br />
//must have the header otherwise response is not recognised as XML<br />
header('Content-Type:text/xml');<br />
$doc = new DOMDocument();</p>
<p>$doc->load( &#8216;https://robdunfey.mymobilesite.net/rest/presence/location&#8217; );</p>
<p>$locations = $doc->getElementsByTagName( &#8220;location&#8221; );</p>
<p>$returndoc = new DOMDocument(&#8216;1.0&#8242;);<br />
// we want a nice output<br />
$returndoc->formatOutput = true;</p>
<p>foreach( $locations as $location )<br />
{<br />
  $latitudes = $location->getElementsByTagName( &#8220;latitude&#8221; );<br />
  $latitude = $latitudes->item(0)->nodeValue;</p>
<p>  $longitudes = $location->getElementsByTagName( &#8220;longitude&#8221; );<br />
  $longitude = $longitudes->item(0)->nodeValue;</p>
<p>  $root = $returndoc->createElement(&#8216;location&#8217;);<br />
  $root = $returndoc->appendChild($root);</p>
<p>  $marker = $returndoc->createElement(&#8216;marker&#8217;);<br />
  $marker = $root->appendChild($marker);</p>
<p>  $marker->setAttribute(&#8220;lat&#8221;, &#8220;$latitude&#8221;);<br />
  $marker->setAttribute(&#8220;lng&#8221;, &#8220;$longitude&#8221;);</p>
<p>  //$coords = $doc->createTextNode(&#8220;$latitude, $longitude&#8221;);<br />
  //$coords = $marker->appendChild($coords);</p>
<p>  }</p>
<p>  echo $returndoc->saveXML() . &#8220;\n&#8221;;</p>
<p>?></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christine</title>
		<link>http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws/comment-page-1#comment-10144</link>
		<dc:creator>Christine</dc:creator>
		<pubDate>Wed, 08 Oct 2008 13:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws#comment-10144</guid>
		<description>I guess what I meant was, how does the php file that parses the xml output look like? And what bits of your code does need to be changed in order to view my location? I&#039;m guessing only the path for the MWS?</description>
		<content:encoded><![CDATA[<p>I guess what I meant was, how does the php file that parses the xml output look like? And what bits of your code does need to be changed in order to view my location? I&#8217;m guessing only the path for the MWS?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christine</title>
		<link>http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws/comment-page-1#comment-10085</link>
		<dc:creator>Christine</dc:creator>
		<pubDate>Mon, 06 Oct 2008 11:49:34 +0000</pubDate>
		<guid isPermaLink="false">http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws#comment-10085</guid>
		<description>Hello Rob,

This is exactly what I&#039;m working on for my master thesis. I&#039;m focusing on journalism for mobilephones and the ability to show local news based on the users location.

What changes need to be made to your code so that I can run this on my mobile (n82)? I would like to show this as an early example of what I&#039;m planning to do. To show people who don&#039;t have a technology background. 

- Christine</description>
		<content:encoded><![CDATA[<p>Hello Rob,</p>
<p>This is exactly what I&#8217;m working on for my master thesis. I&#8217;m focusing on journalism for mobilephones and the ability to show local news based on the users location.</p>
<p>What changes need to be made to your code so that I can run this on my mobile (n82)? I would like to show this as an early example of what I&#8217;m planning to do. To show people who don&#8217;t have a technology background. </p>
<p>- Christine</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws/comment-page-1#comment-6419</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Wed, 09 Jul 2008 08:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws#comment-6419</guid>
		<description>No plans.  A couple of options working with Google Maps might be 1) Google Maps for Mobile (GMM), but they haven’t exposed an API, and I doubt they will except via Android; or 2) a static map via the Google Maps Static API, but obviously that wouldn’t really work for dynamic tracking.

Of course by ‘cross platform’ we are now really talking ‘cross device’, this &lt;a href=&quot;http://foreverneilyoung.blogspot.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;chap&lt;/a&gt; has done some work reverse engineering the GMM API, but I think it&#039;s all Microsoft Smart Phone based.

I doubt any of the other ‘slippy map’ providers offer this flexibility, but I haven’t looked into it...I might try the MultiMap API?</description>
		<content:encoded><![CDATA[<p>No plans.  A couple of options working with Google Maps might be 1) Google Maps for Mobile (GMM), but they haven’t exposed an API, and I doubt they will except via Android; or 2) a static map via the Google Maps Static API, but obviously that wouldn’t really work for dynamic tracking.</p>
<p>Of course by ‘cross platform’ we are now really talking ‘cross device’, this <a href="http://foreverneilyoung.blogspot.com/" target="_blank" rel="nofollow">chap</a> has done some work reverse engineering the GMM API, but I think it&#8217;s all Microsoft Smart Phone based.</p>
<p>I doubt any of the other ‘slippy map’ providers offer this flexibility, but I haven’t looked into it&#8230;I might try the MultiMap API?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Leggetter</title>
		<link>http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws/comment-page-1#comment-6409</link>
		<dc:creator>Phil Leggetter</dc:creator>
		<pubDate>Tue, 08 Jul 2008 21:29:48 +0000</pubDate>
		<guid isPermaLink="false">http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws#comment-6409</guid>
		<description>Hey Rob,

Great example. My only complaint is that my mobile web browsers (Blackberry and Opera Mini) couldn&#039;t view the Google Map. Any plans to provide a cross-browser example?

Phil</description>
		<content:encoded><![CDATA[<p>Hey Rob,</p>
<p>Great example. My only complaint is that my mobile web browsers (Blackberry and Opera Mini) couldn&#8217;t view the Google Map. Any plans to provide a cross-browser example?</p>
<p>Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws/comment-page-1#comment-6400</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 08 Jul 2008 07:54:57 +0000</pubDate>
		<guid isPermaLink="false">http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws#comment-6400</guid>
		<description>I have a £5 a month package from Vodafone UK for 500MB data transfer.  The sales rep I spoke to was somewhat vague as to the permitted nature of the internet connection (i.e. upload and download?), and couldn&#039;t elaborate on what they considered &#039;fair use&#039;.

I plan to contact them today to see if they are happy with my use so far, or if &#039;the computer&#039; has already issued a prohibitive levy for my experimentation?!</description>
		<content:encoded><![CDATA[<p>I have a £5 a month package from Vodafone UK for 500MB data transfer.  The sales rep I spoke to was somewhat vague as to the permitted nature of the internet connection (i.e. upload and download?), and couldn&#8217;t elaborate on what they considered &#8216;fair use&#8217;.</p>
<p>I plan to contact them today to see if they are happy with my use so far, or if &#8216;the computer&#8217; has already issued a prohibitive levy for my experimentation?!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: duxxyuk</title>
		<link>http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws/comment-page-1#comment-6399</link>
		<dc:creator>duxxyuk</dc:creator>
		<pubDate>Tue, 08 Jul 2008 07:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://gisconsultancy.com/blog/mobile-gis/mobile-phone-tracking-with-a-nokia-n95-mws#comment-6399</guid>
		<description>I personally would love to run the nokia mobile web server all the time however the biggest and most overpowering constraint is simply the gprs/3g data cost.</description>
		<content:encoded><![CDATA[<p>I personally would love to run the nokia mobile web server all the time however the biggest and most overpowering constraint is simply the gprs/3g data cost.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

