also load geocoords for second favorite place (#26752)

This commit is contained in:
Frédéric Péters 2018-10-02 14:55:45 +02:00
parent e83aba4a50
commit 7174579b17
1 changed files with 5 additions and 0 deletions

5
debian/50gnm.py vendored
View File

@ -218,6 +218,11 @@ JSON_CELL_TYPES = {
"url": "{% if places %}{{ passerelle_url }}base-adresse/nominatim/search?q={{ places.data.0.text }}&format=json{% endif %}",
"cache_duration": 3600,
},
{
"key": "place2_geoloc",
"url": "{% if places|length > 1 %}{{ passerelle_url }}base-adresse/nominatim/search?q={{ places.data.1.text }}&format=json{% endif %}",
"cache_duration": 3600,
},
],
"actions": {
"geocode": {