<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/addons/base_geolocalize/models/base_geocoder.py, branch 14.0</title>
<subtitle>The current checkout of upstream Odoo</subtitle>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/'/>
<entry>
<title>[FIX] base_geolocalize: access blocked by OpenStreetMap</title>
<updated>2020-04-01T21:22:04+00:00</updated>
<author>
<name>qho</name>
<email>qho@odoo.com</email>
</author>
<published>2020-04-01T08:12:31+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=4496ce31aaafef6bd09004878a4e41fc243bc777'/>
<id>4496ce31aaafef6bd09004878a4e41fc243bc777</id>
<content type='text'>
The geolocation service from OpenStreetMap will not be unblocked until a
'meaningful' and identical user-agent added in the request.

opw-2221857

closes odoo/odoo#48805

X-original-commit: 9018039b835547ea4adbc32a23901214613a033a
Signed-off-by: Nicolas Martinelli (nim) &lt;nim@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The geolocation service from OpenStreetMap will not be unblocked until a
'meaningful' and identical user-agent added in the request.

opw-2221857

closes odoo/odoo#48805

X-original-commit: 9018039b835547ea4adbc32a23901214613a033a
Signed-off-by: Nicolas Martinelli (nim) &lt;nim@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] base_geolocalize: allow to force country in request</title>
<updated>2019-07-04T13:08:42+00:00</updated>
<author>
<name>Jeremy Kersten</name>
<email>jke@odoo.com</email>
</author>
<published>2019-07-04T10:24:00+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=50d21df1561f660c184329cfc4cb567ea5d79ace'/>
<id>50d21df1561f660c184329cfc4cb567ea5d79ace</id>
<content type='text'>
Before this commit, using google geoloc, we only provide a string as address
withtout more information.

Now by defaut, we force the country as components:
https://developers.google.com/maps/documentation/geocoding/intro#geocoding

Related to task-2030886

**setup:**
```python
url = "https://maps.googleapis.com/maps/api/geocode/json"
```

**before:**
```python
params = {'address': 'Georgia', 'key': apikey}
requests.get(url, params).json()
```

&gt;       ==&gt; Return coordinate of "Georgia, United States"
&gt;           What is completely wrong
&gt;

**after:**
```python
params = {'address': 'Georgia', 'components':'country:Georgia', 'key': apikey}
requests.get(url, params).json()
```

&gt;       ==&gt; Return Nothing
&gt;          What is strange but less wrong than US
&gt;

```python
params = {'address': 'Belgium', 'components':'country:Belgium', 'key': apikey}
requests.get(url, params).json()
```

&gt;       ==&gt; Return coordinate of Belgium

closes odoo/odoo#34582

Signed-off-by: Christophe Simonis &lt;chs@odoo.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before this commit, using google geoloc, we only provide a string as address
withtout more information.

Now by defaut, we force the country as components:
https://developers.google.com/maps/documentation/geocoding/intro#geocoding

Related to task-2030886

**setup:**
```python
url = "https://maps.googleapis.com/maps/api/geocode/json"
```

**before:**
```python
params = {'address': 'Georgia', 'key': apikey}
requests.get(url, params).json()
```

&gt;       ==&gt; Return coordinate of "Georgia, United States"
&gt;           What is completely wrong
&gt;

**after:**
```python
params = {'address': 'Georgia', 'components':'country:Georgia', 'key': apikey}
requests.get(url, params).json()
```

&gt;       ==&gt; Return Nothing
&gt;          What is strange but less wrong than US
&gt;

```python
params = {'address': 'Belgium', 'components':'country:Belgium', 'key': apikey}
requests.get(url, params).json()
```

&gt;       ==&gt; Return coordinate of Belgium

closes odoo/odoo#34582

Signed-off-by: Christophe Simonis &lt;chs@odoo.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] base_geolocalize: handle ZERO_RESULTS as google response</title>
<updated>2019-06-26T10:00:59+00:00</updated>
<author>
<name>Jeremy Kersten</name>
<email>jke@odoo.com</email>
</author>
<published>2019-06-26T09:59:28+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=a5b1a288a64e47200dcaa74f3892b56fff1cb5e6'/>
<id>a5b1a288a64e47200dcaa74f3892b56fff1cb5e6</id>
<content type='text'>
Before this commit, it was considered as an error because status was not OK

closes odoo/odoo#34377

Signed-off-by: Jérémy Kersten (jke) &lt;jke@openerp.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before this commit, it was considered as an error because status was not OK

closes odoo/odoo#34377

Signed-off-by: Jérémy Kersten (jke) &lt;jke@openerp.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[MERGE] forward port branch 12.0 up to 251021796c2</title>
<updated>2019-04-04T09:20:03+00:00</updated>
<author>
<name>Christophe Simonis</name>
<email>chs@odoo.com</email>
</author>
<published>2019-04-04T09:20:03+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=d32420397d6500f46d3defa2a840e4f580a13496'/>
<id>d32420397d6500f46d3defa2a840e4f580a13496</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[REF] base_geolocalize, base_setup: ref + make it configurable in settings</title>
<updated>2018-11-16T16:24:49+00:00</updated>
<author>
<name>Jeremy Kersten</name>
<email>jke@odoo.com</email>
</author>
<published>2018-11-15T18:13:35+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=6c67539b92d52ae6c8449d7d2f63d032f805a903'/>
<id>6c67539b92d52ae6c8449d7d2f63d032f805a903</id>
<content type='text'>
Migrate in v12 and Refactor a part of the code
Allow to configure it in setting</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Migrate in v12 and Refactor a part of the code
Allow to configure it in setting</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] base_geolocalize allow to use Openstreetmap instead of Google</title>
<updated>2018-11-15T18:13:46+00:00</updated>
<author>
<name>Emanuel Cino</name>
<email>ecino@compassion.ch</email>
</author>
<published>2018-09-12T10:47:43+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=0fda77e7772624091da1c56fca196e6def1b47ff'/>
<id>0fda77e7772624091da1c56fca196e6def1b47ff</id>
<content type='text'>
- Change API provider to prevent invalid API calls
- Move geo_find methods into base.geocoder object to ease inheritance
- Add system parameter to allow use of another provider

fixes #x26924
fixes #x6929</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Change API provider to prevent invalid API calls
- Move geo_find methods into base.geocoder object to ease inheritance
- Add system parameter to allow use of another provider

fixes #x26924
fixes #x6929</pre>
</div>
</content>
</entry>
</feed>
