fix(): fix creazione address google maps

This commit is contained in:
Flavio Bontà 2025-11-26 16:02:14 +01:00
parent 15aea3755c
commit a26e7ca41c

View File

@ -398,7 +398,6 @@ export class StrutturePubblicheComponent {
comune: _form.citta?.comune, comune: _form.citta?.comune,
}; };
this.calcolaIndirizzoDa = _form.indirizzo; this.calcolaIndirizzoDa = _form.indirizzo;
console.log('params', params);
const strutture$ = this.strutturePubblicheService.getStrutture(params).pipe( const strutture$ = this.strutturePubblicheService.getStrutture(params).pipe(
catchError((err) => { catchError((err) => {
@ -589,7 +588,7 @@ export class StrutturePubblicheComponent {
? ', ' + struttura.struttura.numeroCivico ? ', ' + struttura.struttura.numeroCivico
: '' : ''
}`; }`;
address += `${struttura.struttura.cap} ${struttura.struttura.codiceLuogo.comune}(${struttura.struttura.codiceLuogo.siglaProvincia})`; address += ` ${struttura.struttura.cap} ${struttura.struttura.codiceLuogo.comune}(${struttura.struttura.codiceLuogo.siglaProvincia})`;
// address += `${struttura.struttura.codiceLuogo.provincia ? '(' + struttura.struttura.codiceLuogo.siglaProvincia + ')' : ''}`; // address += `${struttura.struttura.codiceLuogo.provincia ? '(' + struttura.struttura.codiceLuogo.siglaProvincia + ')' : ''}`;
const destination = encodeURIComponent( const destination = encodeURIComponent(