Skip to content

Commit

Permalink
Fix README and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
shukerullah committed Sep 22, 2023
1 parent 8780e43 commit e4967de
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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" }
);

Expand Down
4 changes: 2 additions & 2 deletions examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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" }
);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit e4967de

Please sign in to comment.