SlideShare a Scribd company logo
1 of 13
INTRODUCTION
• GEOPY MAKES IT EASY FOR PYTHON DEVELOPERS TO LOCATE THE COORDINATES OF
ADDRESSES, CITIES, COUNTRIES, AND LANDMARKS ACROSS THE GLOBE USING THIRD-PARTY
GEOCODERS AND OTHER DATA SOURCES.
SERVICES
• GEOCODERS
• CALCULATING DISTANCE
• DATA
GEOCODERS
• GEOCODING AND REVERSE GEOCODING
• USING API SERVICES OF INTERNET GIANTS, SUCH AS GOOGLE MAPS, BING MAPS ETC.
• GOOGLE AND OSM PROVIDE FREE GEOCODING SERVICES WHILE OTHER REQUIRES MAP API KEY.
GEOCODING USING GOOGLE API V3
• CALCULATING POSITION THROUGH ADDRESS
• GEOCODE THROUGH GEOCODE METHOD, RETURNS ADDRESS AND TUPLES OF LATITUDE AND LONGITUDE.
• def geocode(self, query, bounds=None, region=None,language=None, sensor=False,
exactly_one=True)
• param string region: The region code, specified as a ccTLD ("top-level domain") two-character
value
REVERSE GEOCODING
• OBTAINING ADDRESS THROUGH CORRESPONDING POSITION.
• THROUGH ‘reverse’ METHOD.
• def reverse(self, query, language=none, sensor=false, exactly_one=false)
GEOCODING USING OSM
• MAIN CLASS ‘NOMINATIM’ HAS METHODS ‘GEOCODE’ AND ‘INVERSE’
• def geocode(self, query, exactly_one=true)
• def reverse(self, query, exactly_one=true)
CALCULATING DISTANCE
• GEOPY CAN CALCULATE GEODESIC DISTANCE BETWEEN TWO POINTS USING THE VINCENTY DISTANCE
(https://en.wikipedia.org/wiki/vincenty’s_formulae) OR [GREAT-CIRCLE
DISTANCE](https://en.wikipedia.org/wiki/great-circle_distance) FORMULAS
• GREAT-CIRCLE DISTANCE USES A SPHERICAL MODEL OF THE EARTH, USING THE AVERAGE GREAT-CIRCLE
RADIUS OF 6372.795 KILOMETERS, RESULTING IN AN ERROR OF UP TO ABOUT 0.5%.
• VINCENTY DISTANCE USES A MORE ACCURATE ELLIPSOIDAL MODEL OF THE EARTH. THE DEFAULT IS THE
WGS-84 ELLIPSOID.
CALCULTING LENGTH OF PATH
• ACCESSING AND MODYFING ELLIPSOID
• WHAT IS THE TOTAL LENGTH OF PATH IF I TRAVEL FROM KU -> LMTC -> DOS -> KU IN ‘EVEREST ELLIPSOID’ ?
DATA
• USING class geopy.point.Point
• STORES THE LATITUDE AND LONGITUDE IN THE FLOATING POINT DEGREE VALUE AND ALTITUDE IN THE
FLOATING POINT KM VALUE.
DATA
• USING class geopy.location.Location
• Parameters (self, name="", point=None, attributes=None,)
• GET THE CODES AT HTTP://BIT.LY/1FOA4XU
THANK YOU

More Related Content

What's hot

Improving Weather Information Data Services with FME
Improving Weather Information Data Services with FMEImproving Weather Information Data Services with FME
Improving Weather Information Data Services with FMESafe Software
 
Customized story map for agrg weather network
Customized story map for agrg weather networkCustomized story map for agrg weather network
Customized story map for agrg weather networkswap0
 
R spatial presentation
R spatial presentationR spatial presentation
R spatial presentationTodd Barr
 
Geo-Processing in the Clouds
Geo-Processing in the CloudsGeo-Processing in the Clouds
Geo-Processing in the CloudsRobert Coup
 
Using Your Trail GPSr
Using Your Trail GPSrUsing Your Trail GPSr
Using Your Trail GPSrJohn Robb
 
Meeting LARAIC
Meeting LARAICMeeting LARAIC
Meeting LARAICSteve Snow
 
Subsurface 3D GIS 05nov2011
Subsurface 3D GIS 05nov2011Subsurface 3D GIS 05nov2011
Subsurface 3D GIS 05nov2011Andrew Zolnai
 
2016 foss4 g track: grass gis point cloud exploratory data analysis an open ...
2016 foss4 g track: grass gis point cloud exploratory data analysis  an open ...2016 foss4 g track: grass gis point cloud exploratory data analysis  an open ...
2016 foss4 g track: grass gis point cloud exploratory data analysis an open ...GIS in the Rockies
 

What's hot (11)

Improving Weather Information Data Services with FME
Improving Weather Information Data Services with FMEImproving Weather Information Data Services with FME
Improving Weather Information Data Services with FME
 
YingWei03
YingWei03YingWei03
YingWei03
 
Customized story map for agrg weather network
Customized story map for agrg weather networkCustomized story map for agrg weather network
Customized story map for agrg weather network
 
R spatial presentation
R spatial presentationR spatial presentation
R spatial presentation
 
ccat
ccatccat
ccat
 
Sample Works
Sample WorksSample Works
Sample Works
 
Geo-Processing in the Clouds
Geo-Processing in the CloudsGeo-Processing in the Clouds
Geo-Processing in the Clouds
 
Using Your Trail GPSr
Using Your Trail GPSrUsing Your Trail GPSr
Using Your Trail GPSr
 
Meeting LARAIC
Meeting LARAICMeeting LARAIC
Meeting LARAIC
 
Subsurface 3D GIS 05nov2011
Subsurface 3D GIS 05nov2011Subsurface 3D GIS 05nov2011
Subsurface 3D GIS 05nov2011
 
2016 foss4 g track: grass gis point cloud exploratory data analysis an open ...
2016 foss4 g track: grass gis point cloud exploratory data analysis  an open ...2016 foss4 g track: grass gis point cloud exploratory data analysis  an open ...
2016 foss4 g track: grass gis point cloud exploratory data analysis an open ...
 

Similar to Python Geopy

Geopy Module in Python
Geopy Module in PythonGeopy Module in Python
Geopy Module in PythonRabinaTwayana
 
A presentation on Geocoding - Complete Guide
A presentation on Geocoding - Complete GuideA presentation on Geocoding - Complete Guide
A presentation on Geocoding - Complete GuideVickkyGupta
 
Getting Oriented with MapKit: Everything you need to get started with the new...
Getting Oriented with MapKit: Everything you need to get started with the new...Getting Oriented with MapKit: Everything you need to get started with the new...
Getting Oriented with MapKit: Everything you need to get started with the new...John Wilker
 
Open source web GIS
Open source web GISOpen source web GIS
Open source web GISShweta Ghate
 
Geocoding Our Nation's Schools - Blue Raster NCES Stats-DC 2012 Presentation
Geocoding Our Nation's Schools - Blue Raster NCES Stats-DC 2012 PresentationGeocoding Our Nation's Schools - Blue Raster NCES Stats-DC 2012 Presentation
Geocoding Our Nation's Schools - Blue Raster NCES Stats-DC 2012 PresentationBlue Raster
 
Geo search introduction
Geo search introductionGeo search introduction
Geo search introductionkenshin03
 
Volunteering assistance to online geocoding services through a distributed kn...
Volunteering assistance to online geocoding services through a distributed kn...Volunteering assistance to online geocoding services through a distributed kn...
Volunteering assistance to online geocoding services through a distributed kn...José Pablo Gómez Barrón S.
 
OpenStreetMap in Ghana @ SFD 2015
OpenStreetMap in Ghana @ SFD 2015OpenStreetMap in Ghana @ SFD 2015
OpenStreetMap in Ghana @ SFD 2015Enock Seth Nyamador
 
Plugins in QGIS and its uses
Plugins in QGIS and its usesPlugins in QGIS and its uses
Plugins in QGIS and its usesMayuresh Padalkar
 
Geocoding for beginners
Geocoding for beginnersGeocoding for beginners
Geocoding for beginnersAkansha Mishra
 
Using python to analyze spatial data
Using python to analyze spatial dataUsing python to analyze spatial data
Using python to analyze spatial dataKudos S.A.S
 
2017 PLSC Track: Using a Standard Version of ArcMap with External VRS Recieve...
2017 PLSC Track: Using a Standard Version of ArcMap with External VRS Recieve...2017 PLSC Track: Using a Standard Version of ArcMap with External VRS Recieve...
2017 PLSC Track: Using a Standard Version of ArcMap with External VRS Recieve...GIS in the Rockies
 
Geographical information systems
Geographical information systemsGeographical information systems
Geographical information systemsGift Musanza
 
Crowd sourcing gis for global urban area mapping
Crowd sourcing gis for global urban area mappingCrowd sourcing gis for global urban area mapping
Crowd sourcing gis for global urban area mappingHiroyuki Miyazaki
 

Similar to Python Geopy (20)

Geopy Module in Python
Geopy Module in PythonGeopy Module in Python
Geopy Module in Python
 
Day 6 - PostGIS
Day 6 - PostGISDay 6 - PostGIS
Day 6 - PostGIS
 
GPS and GIS
GPS and GISGPS and GIS
GPS and GIS
 
A presentation on Geocoding - Complete Guide
A presentation on Geocoding - Complete GuideA presentation on Geocoding - Complete Guide
A presentation on Geocoding - Complete Guide
 
Maps
MapsMaps
Maps
 
Getting Oriented with MapKit: Everything you need to get started with the new...
Getting Oriented with MapKit: Everything you need to get started with the new...Getting Oriented with MapKit: Everything you need to get started with the new...
Getting Oriented with MapKit: Everything you need to get started with the new...
 
Open source web GIS
Open source web GISOpen source web GIS
Open source web GIS
 
Geocoding Our Nation's Schools - Blue Raster NCES Stats-DC 2012 Presentation
Geocoding Our Nation's Schools - Blue Raster NCES Stats-DC 2012 PresentationGeocoding Our Nation's Schools - Blue Raster NCES Stats-DC 2012 Presentation
Geocoding Our Nation's Schools - Blue Raster NCES Stats-DC 2012 Presentation
 
Mobile LBS
Mobile LBSMobile LBS
Mobile LBS
 
Geo search introduction
Geo search introductionGeo search introduction
Geo search introduction
 
Geolocation and Mapping
Geolocation and MappingGeolocation and Mapping
Geolocation and Mapping
 
Volunteering assistance to online geocoding services through a distributed kn...
Volunteering assistance to online geocoding services through a distributed kn...Volunteering assistance to online geocoding services through a distributed kn...
Volunteering assistance to online geocoding services through a distributed kn...
 
OpenStreetMap in Ghana @ SFD 2015
OpenStreetMap in Ghana @ SFD 2015OpenStreetMap in Ghana @ SFD 2015
OpenStreetMap in Ghana @ SFD 2015
 
Plugins in QGIS and its uses
Plugins in QGIS and its usesPlugins in QGIS and its uses
Plugins in QGIS and its uses
 
Geocoding for beginners
Geocoding for beginnersGeocoding for beginners
Geocoding for beginners
 
Using python to analyze spatial data
Using python to analyze spatial dataUsing python to analyze spatial data
Using python to analyze spatial data
 
2017 PLSC Track: Using a Standard Version of ArcMap with External VRS Recieve...
2017 PLSC Track: Using a Standard Version of ArcMap with External VRS Recieve...2017 PLSC Track: Using a Standard Version of ArcMap with External VRS Recieve...
2017 PLSC Track: Using a Standard Version of ArcMap with External VRS Recieve...
 
Geographical information systems
Geographical information systemsGeographical information systems
Geographical information systems
 
HOW TO CARRY OUT ROUTE SURVEY FOR FIBER PROJECT IMPLEMENTATION
HOW TO CARRY OUT  ROUTE SURVEY FOR FIBER PROJECT IMPLEMENTATIONHOW TO CARRY OUT  ROUTE SURVEY FOR FIBER PROJECT IMPLEMENTATION
HOW TO CARRY OUT ROUTE SURVEY FOR FIBER PROJECT IMPLEMENTATION
 
Crowd sourcing gis for global urban area mapping
Crowd sourcing gis for global urban area mappingCrowd sourcing gis for global urban area mapping
Crowd sourcing gis for global urban area mapping
 

More from Biplov Bhandari

Sahana Disaster Management System
Sahana Disaster Management SystemSahana Disaster Management System
Sahana Disaster Management SystemBiplov Bhandari
 
CAP-on-a-MAP: An Application for Location Specific Early Warnings
CAP-on-a-MAP: An Application for Location Specific Early WarningsCAP-on-a-MAP: An Application for Location Specific Early Warnings
CAP-on-a-MAP: An Application for Location Specific Early WarningsBiplov Bhandari
 
Sahana SAMBRO Work Flows
Sahana SAMBRO Work FlowsSahana SAMBRO Work Flows
Sahana SAMBRO Work FlowsBiplov Bhandari
 
Sahana Workshop Pokhara Nepal
Sahana Workshop Pokhara NepalSahana Workshop Pokhara Nepal
Sahana Workshop Pokhara NepalBiplov Bhandari
 
Preparation of Web Mapping Application of Balephi-B Hydropower Project
Preparation of Web Mapping Application of Balephi-B Hydropower ProjectPreparation of Web Mapping Application of Balephi-B Hydropower Project
Preparation of Web Mapping Application of Balephi-B Hydropower ProjectBiplov Bhandari
 
Generation of High Resolution DSM using UAV Images - Final Year Project
Generation of High Resolution DSM using UAV Images - Final Year ProjectGeneration of High Resolution DSM using UAV Images - Final Year Project
Generation of High Resolution DSM using UAV Images - Final Year ProjectBiplov Bhandari
 
Thematic Mapping of School Network
Thematic Mapping of School NetworkThematic Mapping of School Network
Thematic Mapping of School NetworkBiplov Bhandari
 
DSM Generation Using High Resolution UAV Images
DSM Generation Using High Resolution UAV ImagesDSM Generation Using High Resolution UAV Images
DSM Generation Using High Resolution UAV ImagesBiplov Bhandari
 
SDI In The Context Of Nepal
SDI In The Context Of NepalSDI In The Context Of Nepal
SDI In The Context Of NepalBiplov Bhandari
 
Measurement of Surface Temperature of a Glacier Using an Unmanned Aerial Vehi...
Measurement of Surface Temperature of a Glacier Using an Unmanned Aerial Vehi...Measurement of Surface Temperature of a Glacier Using an Unmanned Aerial Vehi...
Measurement of Surface Temperature of a Glacier Using an Unmanned Aerial Vehi...Biplov Bhandari
 
Infrastructure Standards For Geospatial Standarization
Infrastructure Standards For Geospatial StandarizationInfrastructure Standards For Geospatial Standarization
Infrastructure Standards For Geospatial StandarizationBiplov Bhandari
 
Multisource Data Integration To Prepare Interactive 3D Model Of Kathmandu Uni...
Multisource Data Integration To Prepare Interactive 3D Model Of Kathmandu Uni...Multisource Data Integration To Prepare Interactive 3D Model Of Kathmandu Uni...
Multisource Data Integration To Prepare Interactive 3D Model Of Kathmandu Uni...Biplov Bhandari
 

More from Biplov Bhandari (12)

Sahana Disaster Management System
Sahana Disaster Management SystemSahana Disaster Management System
Sahana Disaster Management System
 
CAP-on-a-MAP: An Application for Location Specific Early Warnings
CAP-on-a-MAP: An Application for Location Specific Early WarningsCAP-on-a-MAP: An Application for Location Specific Early Warnings
CAP-on-a-MAP: An Application for Location Specific Early Warnings
 
Sahana SAMBRO Work Flows
Sahana SAMBRO Work FlowsSahana SAMBRO Work Flows
Sahana SAMBRO Work Flows
 
Sahana Workshop Pokhara Nepal
Sahana Workshop Pokhara NepalSahana Workshop Pokhara Nepal
Sahana Workshop Pokhara Nepal
 
Preparation of Web Mapping Application of Balephi-B Hydropower Project
Preparation of Web Mapping Application of Balephi-B Hydropower ProjectPreparation of Web Mapping Application of Balephi-B Hydropower Project
Preparation of Web Mapping Application of Balephi-B Hydropower Project
 
Generation of High Resolution DSM using UAV Images - Final Year Project
Generation of High Resolution DSM using UAV Images - Final Year ProjectGeneration of High Resolution DSM using UAV Images - Final Year Project
Generation of High Resolution DSM using UAV Images - Final Year Project
 
Thematic Mapping of School Network
Thematic Mapping of School NetworkThematic Mapping of School Network
Thematic Mapping of School Network
 
DSM Generation Using High Resolution UAV Images
DSM Generation Using High Resolution UAV ImagesDSM Generation Using High Resolution UAV Images
DSM Generation Using High Resolution UAV Images
 
SDI In The Context Of Nepal
SDI In The Context Of NepalSDI In The Context Of Nepal
SDI In The Context Of Nepal
 
Measurement of Surface Temperature of a Glacier Using an Unmanned Aerial Vehi...
Measurement of Surface Temperature of a Glacier Using an Unmanned Aerial Vehi...Measurement of Surface Temperature of a Glacier Using an Unmanned Aerial Vehi...
Measurement of Surface Temperature of a Glacier Using an Unmanned Aerial Vehi...
 
Infrastructure Standards For Geospatial Standarization
Infrastructure Standards For Geospatial StandarizationInfrastructure Standards For Geospatial Standarization
Infrastructure Standards For Geospatial Standarization
 
Multisource Data Integration To Prepare Interactive 3D Model Of Kathmandu Uni...
Multisource Data Integration To Prepare Interactive 3D Model Of Kathmandu Uni...Multisource Data Integration To Prepare Interactive 3D Model Of Kathmandu Uni...
Multisource Data Integration To Prepare Interactive 3D Model Of Kathmandu Uni...
 

Recently uploaded

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 

Recently uploaded (20)

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

Python Geopy

  • 1.
  • 2. INTRODUCTION • GEOPY MAKES IT EASY FOR PYTHON DEVELOPERS TO LOCATE THE COORDINATES OF ADDRESSES, CITIES, COUNTRIES, AND LANDMARKS ACROSS THE GLOBE USING THIRD-PARTY GEOCODERS AND OTHER DATA SOURCES.
  • 4. GEOCODERS • GEOCODING AND REVERSE GEOCODING • USING API SERVICES OF INTERNET GIANTS, SUCH AS GOOGLE MAPS, BING MAPS ETC. • GOOGLE AND OSM PROVIDE FREE GEOCODING SERVICES WHILE OTHER REQUIRES MAP API KEY.
  • 5. GEOCODING USING GOOGLE API V3 • CALCULATING POSITION THROUGH ADDRESS • GEOCODE THROUGH GEOCODE METHOD, RETURNS ADDRESS AND TUPLES OF LATITUDE AND LONGITUDE. • def geocode(self, query, bounds=None, region=None,language=None, sensor=False, exactly_one=True) • param string region: The region code, specified as a ccTLD ("top-level domain") two-character value
  • 6. REVERSE GEOCODING • OBTAINING ADDRESS THROUGH CORRESPONDING POSITION. • THROUGH ‘reverse’ METHOD. • def reverse(self, query, language=none, sensor=false, exactly_one=false)
  • 7. GEOCODING USING OSM • MAIN CLASS ‘NOMINATIM’ HAS METHODS ‘GEOCODE’ AND ‘INVERSE’ • def geocode(self, query, exactly_one=true) • def reverse(self, query, exactly_one=true)
  • 8. CALCULATING DISTANCE • GEOPY CAN CALCULATE GEODESIC DISTANCE BETWEEN TWO POINTS USING THE VINCENTY DISTANCE (https://en.wikipedia.org/wiki/vincenty’s_formulae) OR [GREAT-CIRCLE DISTANCE](https://en.wikipedia.org/wiki/great-circle_distance) FORMULAS • GREAT-CIRCLE DISTANCE USES A SPHERICAL MODEL OF THE EARTH, USING THE AVERAGE GREAT-CIRCLE RADIUS OF 6372.795 KILOMETERS, RESULTING IN AN ERROR OF UP TO ABOUT 0.5%. • VINCENTY DISTANCE USES A MORE ACCURATE ELLIPSOIDAL MODEL OF THE EARTH. THE DEFAULT IS THE WGS-84 ELLIPSOID.
  • 9. CALCULTING LENGTH OF PATH • ACCESSING AND MODYFING ELLIPSOID • WHAT IS THE TOTAL LENGTH OF PATH IF I TRAVEL FROM KU -> LMTC -> DOS -> KU IN ‘EVEREST ELLIPSOID’ ?
  • 10. DATA • USING class geopy.point.Point • STORES THE LATITUDE AND LONGITUDE IN THE FLOATING POINT DEGREE VALUE AND ALTITUDE IN THE FLOATING POINT KM VALUE.
  • 11. DATA • USING class geopy.location.Location • Parameters (self, name="", point=None, attributes=None,)
  • 12. • GET THE CODES AT HTTP://BIT.LY/1FOA4XU