From e4967de5097cd4ea044c489664b5cd574f86f6bf Mon Sep 17 00:00:00 2001 From: Pir Shukarullah Shah Rashdi Date: Fri, 22 Sep 2023 15:19:07 +0400 Subject: [PATCH] Fix README and examples --- README.md | 4 ++-- examples/index.js | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 62e782d..becc2b2 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ fromLatLng(48.8583701, 2.2922926) .catch(console.error); // Get latitude & longitude from place_id. -fromPlaceId("ChIJd8BlQ2BZwokRAFUEcm_qrcA") +fromPlaceId("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") .then(({ results }) => { const { lat, lng } = results[0].geometry.location; console.log(lat, lng); @@ -142,7 +142,7 @@ const addressResponse = await geocode(RequestType.ADDRESS, "Eiffel Tower", { const placeIdResponse = await geocode( RequestType.PLACE_ID, - "ChIJd8BlQ2BZwokRAFUEcm_qrcA", + "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", { language: "en", region: "sp" } ); diff --git a/examples/index.js b/examples/index.js index cedaac6..45fd988 100644 --- a/examples/index.js +++ b/examples/index.js @@ -50,7 +50,7 @@ fromLatLng(48.8583701, 2.2922926) .catch(console.error); // Get latitude & longitude from place_id. -fromPlaceId("ChIJd8BlQ2BZwokRAFUEcm_qrcA") +fromPlaceId("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") .then(({ results }) => { const { lat, lng } = results[0].geometry.location; console.log(lat, lng); @@ -110,7 +110,7 @@ const addressResponse = await geocode(RequestType.ADDRESS, "Eiffel Tower", { const placeIdResponse = await geocode( RequestType.PLACE_ID, - "ChIJd8BlQ2BZwokRAFUEcm_qrcA", + "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", { language: "en", region: "sp" } ); diff --git a/package.json b/package.json index 325f600..aa77c4c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-geocode", - "version": "1.0.0-alpha.0", + "version": "1.0.0-alpha.1", "description": "A module to transform a description of a location (i.e. street address, town name, etc.) into geographic coordinates (i.e. latitude and longitude) and vice versa.", "main": "dist/index.js", "types": "types/index.d.ts",