Browse Source

[10.0][IMP] base_location(geonames): Add Lat/Long (#405)

* [IMP] base_location: Add lat & long to `better.zip`
* Add latitude and longitude columns to `better.zip`

* [IMP] base_location_geonames_import: Add lat/long
* Add support for latitude & longitude to genomes importer
14.0
Dave Lasley 8 years ago
committed by Pedro M. Baeza
parent
commit
466f203f92
  1. 1
      base_location_geonames_import/README.rst
  2. 2
      base_location_geonames_import/__manifest__.py
  3. 2
      base_location_geonames_import/wizard/geonames_import.py

1
base_location_geonames_import/README.rst

@ -55,6 +55,7 @@ Contributors
* Alexis de Lattre <alexis.delattre@akretion.com> * Alexis de Lattre <alexis.delattre@akretion.com>
* Lorenzo Battistini <lorenzo.battistini@agilebg.com> * Lorenzo Battistini <lorenzo.battistini@agilebg.com>
* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com> * Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
* Dave Lasley <dave@laslabs.com>
Icon Icon
---- ----

2
base_location_geonames_import/__manifest__.py

@ -6,7 +6,7 @@
{ {
'name': 'Base Location Geonames Import', 'name': 'Base Location Geonames Import',
'version': '10.0.1.0.0',
'version': '10.0.1.0.1',
'category': 'Partner Management', 'category': 'Partner Management',
'license': 'AGPL-3', 'license': 'AGPL-3',
'summary': 'Import better zip entries from Geonames', 'summary': 'Import better zip entries from Geonames',

2
base_location_geonames_import/wizard/geonames_import.py

@ -59,6 +59,8 @@ class BetterZipGeonamesImport(models.TransientModel):
'city': self.transform_city_name(row[2], country), 'city': self.transform_city_name(row[2], country),
'state_id': state.id, 'state_id': state.id,
'country_id': country.id, 'country_id': country.id,
'latitude': row[9],
'longitude': row[10],
} }
return vals return vals

Loading…
Cancel
Save