Geospatial mailing list archives

geospatial@odoo-community.org

Avatar

Re: GPS android to GeoPoint

by
Camptocamp SA, Yannick Payot
- 16/10/2017 10:43:03
Hello,

And how are you sending your coordinates from your android phone to Odoo ?

If you use xmlrpc or jsonrpc from your android application, you must transform your coordinates first and then write the object.



If it is by hand there is a widget on geoengine fields to set long / lat

Your view should define <field name="my_coordinates" widget="geo_point_xy"/>
 
instead of <field name="my_coordinates" widget="geo_edit_map"/>

Then make sure to transform your coordinates from GPS to odoo srid. And use that field to write them.

Cheers,

Yannick Vaucher
Business Solutions Software Developer

Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 30
Office: +41 21 619 10 10

On 13 October 2017 at 19:02, Giuseppe Flammia <giuseppe.flammia@iquadro.net> wrote:

Hello to all,

I have already written on the subject but I think I have been misunderstood.

I need to transform the lat / long coordinates of the position of an android phone

in a GeoPoint.

 

Is there a geoengine utility that allows you to transform lat / long into GeoPoint?

 

 

Thanks

_______________________________________________
Mailing-List: https://odoo-community.org/groups/geospatial-48
Post to: mailto:geospatial@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe


Reference