Odoo Help

0

How to convert as geo_point Datatype as latitude and longitude

By
sridhar
on 5/2/14, 3:15 AM 1,378 views

How to convert as geo_point Datatype as latitude and longitude, I'm using base_engine module, i want to convert as geo_point datatype, how to do this what is the syntax for this. Anybody know this share your knowledge.

Hi Sridhar,

If you have GeoPoint object then you can get the lat & long by GeoPoint_obj.latitude and GeoPoint_obj.longitude

https://developers.google.com/appengine/docs/python/search/geopointclass#geopoint_latitude

Please check and let me know :)

ASP
on 5/2/14, 6:53 AM

In OpenERP we have module base_geoengine, in this module all the functionality are there like geo_point, geo_line, in Openerp how to give this, 'abc':fields.geo_point.latitude("ABC"), is this a correct syntax?

sridhar
on 5/2/14, 7:03 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 5/2/14, 3:15 AM
Seen: 1378 times
Last updated: 3/16/15, 8:10 AM