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
e3c714d1
Commit
e3c714d1
authored
Jun 29, 2019
by
Suddala Hannoop Kumarr
Browse files
Upload New File
parent
5c1d8981
Changes
1
Hide whitespace changes
Inline
Side-by-side
map_test.py
0 → 100644
View file @
e3c714d1
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