📦 geocoding ​
This package provides a unified interface for working with various geocoding services.
Installation ​
sh
npm install @geospatial-sdk/geocodingUsage ​
typescript
import { queryGeoplateforme } from "@geospatial-sdk/geocoding";
const results = await queryGeoplateforme("Paris, France");
console.log(results[0].label); // "Paris 75000"
console.log(results[0].geom); // GeoJSON Geometry objectInterfaces ​
| Interface | Description |
|---|---|
| - | |
| GeoadminOptions | Reference documentation: https://api3.geo.admin.ch/services/sdiservices.html#search |
| GeocodingResult | - |
| GeonamesOptions | Reference documentation: http://www.geonames.org/export/geonames-search.html |
| GeoplateformeOptions | Reference documentation: https://cartes.gouv.fr/aide/fr/guides-utilisateur/utiliser-les-services-de-la-geoplateforme/geocodage/ |
Type Aliases ​
| Type Alias | Description |
|---|---|
| GeoadminResponse | - |
Functions ​
| Function | Description |
|---|---|
| - | |
| queryGeoadmin | - |
| queryGeonames | - |
| queryGeoplateforme | - |