Alternatively, place POIs along the coast (how dense depends on the accuracy you want to have). Calculate the minimum distance from the set of POIs.<br><br><div class="gmail_quote">2009/6/28 mqy <span dir="ltr">&lt;<a href="mailto:meng.qingyou@gmail.com">meng.qingyou@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
hi lanzo,<br>
<br>
I have to say that your problem is interesting, but it&#39;s a bit too specific<br>
for a GPS application to do this.<br>
One quick and dirty solution is:<br>
<br>
You write a small application which:<br>
1) calculate a polygon area which contains the allowed range. to do this you<br>
have to use web map or standalone map. The polygon nodes are lat/lon pairs.<br>
2) get GPS fix from fso ogpsd through DBUS API. this is not difficult with<br>
python<br>
3) periodically (say every five seconds) test if current position goes out<br>
of predefined area.<br>
   if the test result is true, then warn with sound (aplay command).<br>
<br>
To see where you are, you can run a GPS application at the same time.<br>
<br>
I&#39;m the writer of omgps, I&#39;m planning to extend omgps to solve this kind of<br>
problem --<br>
allow user register his/her python script as plugin, omgps periodically call<br>
each plugin,<br>
passing parameters of current lat/lon/altitude, etc. Periodically can be<br>
defined as: (1) on each fix (2) every N seconds.<br>
<br>
Welcome your feed back :)<br>
<div class="im"><br>
<br>
lanzo wrote:<br>
&gt;<br>
&gt; Hi!<br>
&gt; I&#39;d like to be using my FR on my little boat as marine GPS. I was curious<br>
&gt; if, in your opinion, it could be possible to constantly show  the distance<br>
&gt; between me and the nearest point on the coast line. This would be<br>
&gt; important because in my country (and i guess everywhere) there are rules<br>
&gt; about the little boats distances from the coast and I cannot overcome 3<br>
&gt; nautical miles.<br>
&gt;<br>
&gt; I know it should be possible to show the distances between my present<br>
&gt; position and any given point, but what about something always displaying<br>
&gt; the distances between my position and the nearest point on the coast?<br>
&gt;<br>
&gt; is there maybe any more in-topic forum where i can ask this?<br>
&gt;<br>
&gt; Thank you very much for any answer!<br>
&gt; bye! :)<br>
&gt;<br>
<br>
--<br>
</div>View this message in context: <a href="http://n2.nabble.com/which-gps-app-can-do-this--tp3169715p3170060.html" target="_blank">http://n2.nabble.com/which-gps-app-can-do-this--tp3169715p3170060.html</a><br>
<div><div></div><div class="h5">Sent from the Openmoko Community mailing list archive at Nabble.com.<br>
<br>
<br>
_______________________________________________<br>
Openmoko community mailing list<br>
<a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br>
<a href="http://lists.openmoko.org/mailman/listinfo/community" target="_blank">http://lists.openmoko.org/mailman/listinfo/community</a><br>
<br>
</div></div></blockquote></div><br>