Geocode

Jussi Kukkonen jku at o-hand.com
Mon Nov 12 02:39:08 PST 2007


keith preston wrote:
> I think we should also provide a separate method for fuzzy logic
> search.    Where the application can provide 1 text string and it
> returns an lat lon.  (Like google)

I think the right way to do this is just to add a "freetext"-argument
into AddressToPosition-interface. I experimented with having several
methods but I can see no real benefits (libgypsy on the other hand might
want to offer convenience versions with e.g. just a free_text input).

I also removed the description, text and uri arguments. They were copied
from Address-interface and have no value here.

---
 <interface name="org.freedesktop.Geoclue.Geocode">
     <method name="AddressToPosition">
         <arg type="s" name="freetext" direction="in" />
         <arg type="s" name="countrycode" direction="in" />
         <arg type="s" name="country" direction="in" />
         <arg type="s" name="region" direction="in" />
         <arg type="s" name="locality" direction="in" />
         <arg type="s" name="area" direction="in" />
         <arg type="s" name="postalcode" direction="in" />
         <arg type="s" name="street" direction="in" />

         <arg name="fields" type="i" direction="out" />

         <arg name="latitude" type="d" direction="out" />
         <arg name="longitude" type="d" direction="out" />
         <arg name="altitude" type="d" direction="out" />
     </method>
 </interface>
---



 -Jussi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: OpenPGP digital signature
Url : http://lists.freedesktop.org/archives/geoclue/attachments/20071112/ee249999/attachment.pgp 


More information about the GeoClue mailing list