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
caba622a
Commit
caba622a
authored
Jul 20, 2019
by
Lakkakula Sai Sri Bhavya
Browse files
Merge branch 'patch-47' into 'master'
Upload New File See merge request
!54
parents
a2af5ae9
51e9fab8
Pipeline
#31420
passed with stage
in 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
marking_hospitals__1_.ipynb
0 → 100644
View file @
caba622a
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import folium \n",
"import os\n",
"import json\n"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"m = folium.Map(location=[17.4274003, 78.4311174], zoom_start=15)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"tooltip = 'Click For More Info'"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(<folium.map.Marker at 0x7fef91a32240>,)"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"folium.Marker([17.0765926,78.2067608],\n",
" popup='<strong>Govt Hospital,Farooqnagar</strong>',\n",
" tooltip=tooltip,\n",
" icon=folium.Icon(color='red',icon='plus-square',prefix='fa')).add_to(m),"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(<folium.map.Marker at 0x7fef91a32be0>,)"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Create markers\n",
"folium.Marker([17.2652333,78.3913162],\n",
" popup='<strong>Lakshmi Hospital,Thukkuguda</strong>',\n",
" tooltip=tooltip,\n",
" icon=folium.Icon(color='red',icon='plus-square',prefix='fa')).add_to(m),\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
"def plotDot(point):\n",
" htmlstring=folium.Html(popupHTMLstring(point),script=True)\n",
" folium.circleMarker(location=[point.Location_Coordinates],radius=2,weight=0,popup=folium.popup(htmlstring)).add_to(m)"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
%% Cell type:code id: tags:
```
python
import
folium
import
os
import
json
```
%% Cell type:code id: tags:
```
python
m
=
folium
.
Map
(
location
=
[
17.4274003
,
78.4311174
],
zoom_start
=
15
)
```
%% Cell type:code id: tags:
```
python
tooltip
=
'Click For More Info'
```
%% Cell type:code id: tags:
```
python
folium
.
Marker
([
17.0765926
,
78.2067608
],
popup
=
'<strong>Govt Hospital,Farooqnagar</strong>'
,
tooltip
=
tooltip
,
icon
=
folium
.
Icon
(
color
=
'red'
,
icon
=
'plus-square'
,
prefix
=
'fa'
)).
add_to
(
m
),
```
%%%% Output: execute_result
(<folium.map.Marker at 0x7fef91a32240>,)
%% Cell type:code id: tags:
```
python
# Create markers
folium
.
Marker
([
17.2652333
,
78.3913162
],
popup
=
'<strong>Lakshmi Hospital,Thukkuguda</strong>'
,
tooltip
=
tooltip
,
icon
=
folium
.
Icon
(
color
=
'red'
,
icon
=
'plus-square'
,
prefix
=
'fa'
)).
add_to
(
m
),
```
%%%% Output: execute_result
(<folium.map.Marker at 0x7fef91a32be0>,)
%% Cell type:code id: tags:
```
python
def
plotDot
(
point
):
htmlstring
=
folium
.
Html
(
popupHTMLstring
(
point
),
script
=
True
)
folium
.
circleMarker
(
location
=
[
point
.
Location_Coordinates
],
radius
=
2
,
weight
=
0
,
popup
=
folium
.
popup
(
htmlstring
)).
add_to
(
m
)
```
%% Cell type:code id: tags:
```
python
import
pandas
as
pd
```
%% Cell type:code id: tags:
```
python
```
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