İçereği Atla
Menü
Bu soru işaretlendi
4891 Görünümler

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.

Avatar
Vazgeç

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

Üretici

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?