SlideShare a Scribd company logo
1 of 13
Download to read offline
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

4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptxmary850239
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxAnupam32727
 
647291105-Ppt-Arts-10-4th-Quarter-1.pdfi
647291105-Ppt-Arts-10-4th-Quarter-1.pdfi647291105-Ppt-Arts-10-4th-Quarter-1.pdfi
647291105-Ppt-Arts-10-4th-Quarter-1.pdfijoemmbrillantes
 
Jordan Chrietzberg In Media Res Media Component
Jordan Chrietzberg In Media Res Media ComponentJordan Chrietzberg In Media Res Media Component
Jordan Chrietzberg In Media Res Media ComponentInMediaRes1
 
DBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfDBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfChristalin Nelson
 
Self directed Learning - SDL, introduction to SDL
Self directed Learning - SDL, introduction to SDLSelf directed Learning - SDL, introduction to SDL
Self directed Learning - SDL, introduction to SDLspmdoc
 
HackerOne X IoT Lab Bug Bounty 101 with Encryptsaan & IoT Lab at KIIT Univers...
HackerOne X IoT Lab Bug Bounty 101 with Encryptsaan & IoT Lab at KIIT Univers...HackerOne X IoT Lab Bug Bounty 101 with Encryptsaan & IoT Lab at KIIT Univers...
HackerOne X IoT Lab Bug Bounty 101 with Encryptsaan & IoT Lab at KIIT Univers...kumarpriyanshu81
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...Nguyen Thanh Tu Collection
 
(Part 1) CHILDREN'S DISABILITIES AND EXCEPTIONALITIES.pdf
(Part 1) CHILDREN'S DISABILITIES AND EXCEPTIONALITIES.pdf(Part 1) CHILDREN'S DISABILITIES AND EXCEPTIONALITIES.pdf
(Part 1) CHILDREN'S DISABILITIES AND EXCEPTIONALITIES.pdfMJDuyan
 
Farrington HS Streamlines Guest Entrance
Farrington HS Streamlines Guest EntranceFarrington HS Streamlines Guest Entrance
Farrington HS Streamlines Guest Entrancejulius27264
 
Supply agency market - aiming high 2.pdf
Supply agency market - aiming high 2.pdfSupply agency market - aiming high 2.pdf
Supply agency market - aiming high 2.pdftomeskell101
 
Objectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxObjectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxMadhavi Dharankar
 
16. Discovery, function and commercial uses of different PGRS.pptx
16. Discovery, function and commercial uses of different PGRS.pptx16. Discovery, function and commercial uses of different PGRS.pptx
16. Discovery, function and commercial uses of different PGRS.pptxUmeshTimilsina1
 
Shark introduction Morphology and its behaviour characteristics
Shark introduction Morphology and its behaviour characteristicsShark introduction Morphology and its behaviour characteristics
Shark introduction Morphology and its behaviour characteristicsArubSultan
 
Sarah Lahm In Media Res Media Component
Sarah Lahm  In Media Res Media ComponentSarah Lahm  In Media Res Media Component
Sarah Lahm In Media Res Media ComponentInMediaRes1
 
Views in Odoo 17 - Kanban View in odoo 17
Views in Odoo 17 - Kanban View  in odoo 17Views in Odoo 17 - Kanban View  in odoo 17
Views in Odoo 17 - Kanban View in odoo 17Celine George
 
(Part 2) CHILDREN'S DISABILITIES AND EXCEPTIONALITIES.pdf
(Part 2) CHILDREN'S DISABILITIES AND EXCEPTIONALITIES.pdf(Part 2) CHILDREN'S DISABILITIES AND EXCEPTIONALITIES.pdf
(Part 2) CHILDREN'S DISABILITIES AND EXCEPTIONALITIES.pdfMJDuyan
 
How to create _name_search function in odoo 17
How to create _name_search function in odoo 17How to create _name_search function in odoo 17
How to create _name_search function in odoo 17Celine George
 

Recently uploaded (20)

4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
 
647291105-Ppt-Arts-10-4th-Quarter-1.pdfi
647291105-Ppt-Arts-10-4th-Quarter-1.pdfi647291105-Ppt-Arts-10-4th-Quarter-1.pdfi
647291105-Ppt-Arts-10-4th-Quarter-1.pdfi
 
Jordan Chrietzberg In Media Res Media Component
Jordan Chrietzberg In Media Res Media ComponentJordan Chrietzberg In Media Res Media Component
Jordan Chrietzberg In Media Res Media Component
 
DBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfDBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdf
 
Self directed Learning - SDL, introduction to SDL
Self directed Learning - SDL, introduction to SDLSelf directed Learning - SDL, introduction to SDL
Self directed Learning - SDL, introduction to SDL
 
HackerOne X IoT Lab Bug Bounty 101 with Encryptsaan & IoT Lab at KIIT Univers...
HackerOne X IoT Lab Bug Bounty 101 with Encryptsaan & IoT Lab at KIIT Univers...HackerOne X IoT Lab Bug Bounty 101 with Encryptsaan & IoT Lab at KIIT Univers...
HackerOne X IoT Lab Bug Bounty 101 with Encryptsaan & IoT Lab at KIIT Univers...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
 
(Part 1) CHILDREN'S DISABILITIES AND EXCEPTIONALITIES.pdf
(Part 1) CHILDREN'S DISABILITIES AND EXCEPTIONALITIES.pdf(Part 1) CHILDREN'S DISABILITIES AND EXCEPTIONALITIES.pdf
(Part 1) CHILDREN'S DISABILITIES AND EXCEPTIONALITIES.pdf
 
Farrington HS Streamlines Guest Entrance
Farrington HS Streamlines Guest EntranceFarrington HS Streamlines Guest Entrance
Farrington HS Streamlines Guest Entrance
 
Supply agency market - aiming high 2.pdf
Supply agency market - aiming high 2.pdfSupply agency market - aiming high 2.pdf
Supply agency market - aiming high 2.pdf
 
Objectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxObjectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptx
 
16. Discovery, function and commercial uses of different PGRS.pptx
16. Discovery, function and commercial uses of different PGRS.pptx16. Discovery, function and commercial uses of different PGRS.pptx
16. Discovery, function and commercial uses of different PGRS.pptx
 
Shark introduction Morphology and its behaviour characteristics
Shark introduction Morphology and its behaviour characteristicsShark introduction Morphology and its behaviour characteristics
Shark introduction Morphology and its behaviour characteristics
 
Sarah Lahm In Media Res Media Component
Sarah Lahm  In Media Res Media ComponentSarah Lahm  In Media Res Media Component
Sarah Lahm In Media Res Media Component
 
Views in Odoo 17 - Kanban View in odoo 17
Views in Odoo 17 - Kanban View  in odoo 17Views in Odoo 17 - Kanban View  in odoo 17
Views in Odoo 17 - Kanban View in odoo 17
 
CARNAVAL COM MAGIA E EUFORIA _
CARNAVAL COM MAGIA E EUFORIA            _CARNAVAL COM MAGIA E EUFORIA            _
CARNAVAL COM MAGIA E EUFORIA _
 
Chi-Square Test Non Parametric Test Categorical Variable
Chi-Square Test Non Parametric Test Categorical VariableChi-Square Test Non Parametric Test Categorical Variable
Chi-Square Test Non Parametric Test Categorical Variable
 
(Part 2) CHILDREN'S DISABILITIES AND EXCEPTIONALITIES.pdf
(Part 2) CHILDREN'S DISABILITIES AND EXCEPTIONALITIES.pdf(Part 2) CHILDREN'S DISABILITIES AND EXCEPTIONALITIES.pdf
(Part 2) CHILDREN'S DISABILITIES AND EXCEPTIONALITIES.pdf
 
How to create _name_search function in odoo 17
How to create _name_search function in odoo 17How to create _name_search function in odoo 17
How to create _name_search function in odoo 17
 

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