Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 7911 | Rev 7917 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 7911 Rev 7912
Línea 50... Línea 50...
50
    }
50
    }
Línea 51... Línea 51...
51
 
51
 
Línea 52... Línea 52...
52
    async function handlePlaceSelect(updateQuery) {
52
    async function handlePlaceSelect(updateQuery) {
-
 
53
 
Línea 53... Línea -...
53
 
-
 
54
        const place = await autoComplete.getPlace()
-
 
55
 
54
        const place = await autoComplete.getPlace()
56
        if (place.geometry) {
55
        console.log(place)
57
 
56
 
58
            setData({
57
        setData({
59
                ...data,
58
            ...data,
60
                formatted_address: place.formatted_address,
59
            formatted_address: place.formatted_address,
Línea -... Línea 60...
-
 
60
            latitude: place.geometry.location.lat(),
61
                latitude: place.geometry.location.lat(),
61
            longitude: place.geometry.location.lng()
62
                longitude: place.geometry.location.lng()
62
        })
63
            })
63
 
64
 
64
        if (place.geometry) {
65
            place.address_components.forEach((address_component) => {
65
            place.address_components.forEach((address_component) => {