0.0.2 • Published 6 years ago

geo-codref v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Geo-codificador/referenciador

Instalación

npm install geo-codref

Compilación

npm run build

Importando el módulo

import { GeoCodRefModule } from 'geo-codref';

@NgModule({
  declarations: [...],
  imports: [
	 ...,
    GeoCodRefModule.forRoot(ConfigService, 'GEO_SERVER')
  ],
  providers: [...]
})

Usandolo en el componente

@Component({
  selector: 'test',
  styleUrls: ['./test.component.css'],
  templateUrl: './test.component.html'
})
constructor(private geoService: GeoService) {}

...

buscar(direccion?: string, partido?: string, localidad?: string, pais?: string){
	this.geoService.georeferenciar({
		direccion: direccion,
		partido: partido,
		localidad: localidad,
		pais: pais
	}).subscribe(x=>{
		console.log(x);
	});
}

NOTA: Todos los detalles se encuentran en los d.ts