Commit 51e9fab8 authored by Kuchipudi Rushi KIran Kumar's avatar Kuchipudi Rushi KIran Kumar
Browse files

Upload New File

parent 2f26ce34
{
"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
```
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment