Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4899 Widoki

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.

Awatar
Odrzuć

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

Autor

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?