Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
HealthTech
Hospital Recommendations
Commits
0e879a92
Commit
0e879a92
authored
Jul 20, 2019
by
Lakkakula Sai Sri Bhavya
Browse files
Merge branch 'master' into 'master'
Master See merge request
!61
parents
44827f9c
669734bf
Pipeline
#31460
passed with stage
in 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
map_test.py
View file @
0e879a92
import
folium
import
os
import
json
# Create map object
m
=
folium
.
Map
(
location
=
[
17.540267
,
78.386352
],
zoom_start
=
15
)
# Global tooltip
tooltip
=
'Click For More Info'
# Create custom marker icon
logoIcon
=
folium
.
features
.
CustomIcon
(
'hospital.png'
,
icon_size
=
(
25
,
25
))
# Create markers
folium
.
Marker
([
17.538376
,
78.385291
],
popup
=
'<strong>Parking</strong>'
,
tooltip
=
tooltip
,
icon
=
folium
.
Icon
(
color
=
'blue'
,
icon
=
'paragraph'
,
prefix
=
'fa'
)).
add_to
(
m
),
folium
.
Marker
([
17.538171
,
78.385107
],
popup
=
'<strong>saraswati statue</strong>'
,
tooltip
=
tooltip
,
icon
=
folium
.
Icon
(
icon
=
'glyphicon glyphicon-tower'
)).
add_to
(
m
),
folium
.
Marker
([
17.538577
,
78.385014
],
popup
=
'<strong>canteen</strong>'
,
tooltip
=
tooltip
,
icon
=
folium
.
Icon
(
color
=
'purple'
,
icon
=
'glyphicon glyphicon-glass'
)).
add_to
(
m
),
folium
.
Marker
([
17.536517
,
78.384611
],
popup
=
'<strong>coffee shop</strong>'
,
tooltip
=
tooltip
,
icon
=
folium
.
Icon
(
color
=
'orange'
,
icon
=
'coffee'
,
prefix
=
'fa'
)).
add_to
(
m
),
folium
.
Marker
([
17.5337555
,
78.3592283
],
popup
=
'<strong>Hospital</strong>'
,
tooltip
=
tooltip
,
icon
=
folium
.
Icon
(
color
=
'red'
,
icon
=
'glyphicon glyphicon-header'
)).
add_to
(
m
),
# Circle marker
folium
.
CircleMarker
(
location
=
[
17.537380
,
78.384909
],
radius
=
200
,
popup
=
'VNR VJIET'
,
color
=
'#428bca'
,
fill
=
True
,
fill_color
=
'#428bca'
).
add_to
(
m
)
# Generate map
m
.
save
(
'H:\Sickaid\map.html'
)
Write
Preview
Supports
Markdown
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