address/address_point → address/geocode

This commit is contained in:
gregoirenovel 2018-10-15 23:38:21 +02:00
parent e667cad617
commit f01057267b
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

@ -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'