Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-257
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2022-257
2022-257
Commits
e4a3a4d5
Commit
e4a3a4d5
authored
Nov 13, 2022
by
Miurangi Masakorala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes added to pharmacy controler
parent
c638e04e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Backend/src/controller/pharmacy.controller.js
Backend/src/controller/pharmacy.controller.js
+2
-2
No files found.
Backend/src/controller/pharmacy.controller.js
View file @
e4a3a4d5
...
...
@@ -68,13 +68,13 @@ const getDistanceToBusStation = async (req, res) => {
var
config
=
{
method
:
'
get
'
,
url
:
`https://maps.googleapis.com/maps/api/place/nearbysearch/json?keyword=bus station&location=
${
latitude
}
,
${
longitude
}
&radius=
10
000&type=bus station&keyword=&key=
${
process
.
env
.
API_KEY_SECRET
}
`
,
url
:
`https://maps.googleapis.com/maps/api/place/nearbysearch/json?keyword=bus station&location=
${
latitude
}
,
${
longitude
}
&radius=
6
000&type=bus station&keyword=&key=
${
process
.
env
.
API_KEY_SECRET
}
`
,
headers
:
{
}
};
axios
(
config
)
.
then
(
function
(
response
)
{
console
.
log
(
"
23232xcc
"
,
response
.
data
.
results
)
//
console.log("23232xcc",response.data.results)
let
newlongitude
=
response
.
data
.
results
[
0
].
geometry
.
location
.
lat
;
let
newlatitude
=
response
.
data
.
results
[
0
].
geometry
.
location
.
lng
;
console
.
log
(
"
Nearest Bus station latitude:
"
,
newlatitude
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment