From f01057267b9c4e9125bb2b83baaac60181c496c8 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Mon, 15 Oct 2018 23:38:21 +0200 Subject: [PATCH] =?UTF-8?q?address/address=5Fpoint=20=E2=86=92=20address/g?= =?UTF-8?q?eocode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/javascript/old_design/carto.js | 2 +- config/routes.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/old_design/carto.js b/app/javascript/old_design/carto.js index b31bf13bb..e3a41de63 100644 --- a/app/javascript/old_design/carto.js +++ b/app/javascript/old_design/carto.js @@ -63,7 +63,7 @@ function addEventFreeDraw(freeDraw) { } function getAddressPoint(map, request) { - getJSON('/address/address_point', { request }).then(data => { + getJSON('/address/geocode', { request }).then(data => { if (data.lat !== null) { map.setView(new L.LatLng(data.lat, data.lon), data.zoom); } diff --git a/config/routes.rb b/config/routes.rb index bc67f02a8..4c6214051 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -251,7 +251,7 @@ Rails.application.routes.draw do # get 'address/search' => 'address#get' - get 'address/address_point' => 'address#get_address_point' + get 'address/geocode' => 'address#get_address_point' namespace :invites do post 'dossier/:dossier_id' => '/invites#create', as: 'dossier'