From 15a97b079efbf1f5ab818c29c379809eefe0f69b Mon Sep 17 00:00:00 2001 From: Eeshan patel <120174779+undertakerme@users.noreply.github.com> Date: Sat, 19 Oct 2024 04:13:54 +0530 Subject: [PATCH] user location is being fetched properly --- user-map.html | 5 ++-- user.html | 76 +++++++++++++++++++++++++++------------------------ 2 files changed, 43 insertions(+), 38 deletions(-) diff --git a/user-map.html b/user-map.html index 7f94fa66..c4222d1d 100644 --- a/user-map.html +++ b/user-map.html @@ -62,9 +62,8 @@

Hospitals

service = new google.maps.places.PlacesService(map); searchNearby(userLocation); - - }, error => { - console.error('Error getting user location: ' + error.message); + }, () => { + console.error('Error getting user location.'); }); } else { console.error('Geolocation is not supported by this browser.'); diff --git a/user.html b/user.html index d4871133..f7d1d7c8 100644 --- a/user.html +++ b/user.html @@ -12,13 +12,9 @@

Nearby Hospitals

-
-

Hospital Name

-

Address: Address

-

Rating: 4.5

-
+
- +
- \ No newline at end of file +