diff --git a/types/node-geocoder/index.d.ts b/types/node-geocoder/index.d.ts index 851863f8b9..bea54e003a 100644 --- a/types/node-geocoder/index.d.ts +++ b/types/node-geocoder/index.d.ts @@ -105,6 +105,7 @@ declare namespace node_geocoder { zipcode?: string; provider?: string; state?: string; + stateCode?: string; county?: string; district?: string; building?: string; diff --git a/types/node-geocoder/node-geocoder-tests.ts b/types/node-geocoder/node-geocoder-tests.ts index bb554d03ba..227a6855c9 100644 --- a/types/node-geocoder/node-geocoder-tests.ts +++ b/types/node-geocoder/node-geocoder-tests.ts @@ -29,6 +29,10 @@ geocoder.geocode(query, (err: any, entries: NodeGeocoder.Entry[]) => { console.log(JSON.stringify(entries, null, 2)); }); +geocoder.geocode('Austin, TX, USA', (err: any, entries: NodeGeocoder.Entry[]) => { + console.log(JSON.stringify(entries, null, 2)); +}); + geocoder.batchGeocode([ 'Kraków', 'Warszawa' ]).then((entries) => { if (entries.length !== 2) { return; diff --git a/types/node-geocoder/tsconfig.json b/types/node-geocoder/tsconfig.json index 8076dc932c..44afd08f19 100644 --- a/types/node-geocoder/tsconfig.json +++ b/types/node-geocoder/tsconfig.json @@ -20,4 +20,4 @@ "index.d.ts", "node-geocoder-tests.ts" ] -} \ No newline at end of file +}