跳至内容
菜单
此问题已终结
4897 查看

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 :)

编写者

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?