address/address_point → address/geocode
This commit is contained in:
parent
e667cad617
commit
f01057267b
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue