SlideShare a Scribd company logo
Python Geopy
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

PDF
Geocap seismic oil and gas for ArcGIS- Oil and Gas seminar October 10th
PDF
Petroleum lunch seminar 30.10.2014
PPTX
Reading zheng et_al_2010
ODP
The Innovative APIs Fueling Location on the Web
PDF
Co gps energy efficient gps sensing with cloud offloading
PPTX
calculating wind speed and direction using arcgis
PPTX
The National Soil Information System of Sudan
PPTX
Rachael Grube, EPCAMR - “New Methods for Digitizing Mine Maps”
Geocap seismic oil and gas for ArcGIS- Oil and Gas seminar October 10th
Petroleum lunch seminar 30.10.2014
Reading zheng et_al_2010
The Innovative APIs Fueling Location on the Web
Co gps energy efficient gps sensing with cloud offloading
calculating wind speed and direction using arcgis
The National Soil Information System of Sudan
Rachael Grube, EPCAMR - “New Methods for Digitizing Mine Maps”

What's hot (11)

PPTX
Improving Weather Information Data Services with FME
PDF
YingWei03
PPTX
Customized story map for agrg weather network
PPTX
R spatial presentation
PPTX
PDF
Sample Works
PDF
Geo-Processing in the Clouds
PPT
Using Your Trail GPSr
PDF
Meeting LARAIC
PDF
Subsurface 3D GIS 05nov2011
PDF
2016 foss4 g track: grass gis point cloud exploratory data analysis an open ...
Improving Weather Information Data Services with FME
YingWei03
Customized story map for agrg weather network
R spatial presentation
Sample Works
Geo-Processing in the Clouds
Using Your Trail GPSr
Meeting LARAIC
Subsurface 3D GIS 05nov2011
2016 foss4 g track: grass gis point cloud exploratory data analysis an open ...
Ad

Similar to Python Geopy (15)

PPTX
Geopy module in python
PPTX
Geopy Module in Python
PDF
Geolocation on Rails
PPTX
Revolutionizing Location Services Introducing Ambee's Geocoding and Reverse G...
PDF
Geo search introduction
PPTX
Geocoding for beginners
PDF
Where20 2008 Ruby Tutorial
PDF
Rails GIS Hacks
PPT
Remote Geocoding
PDF
Geokit In Social Apps
PPTX
Restaurant finder
PDF
Volunteering assistance to online geocoding services through a distributed kn...
PDF
GeoCommons Open-Source GeoCoder
PDF
Geohex v2 at GMS_nagoya
PPTX
Geocoding Our Nation's Schools - Blue Raster NCES Stats-DC 2012 Presentation
Geopy module in python
Geopy Module in Python
Geolocation on Rails
Revolutionizing Location Services Introducing Ambee's Geocoding and Reverse G...
Geo search introduction
Geocoding for beginners
Where20 2008 Ruby Tutorial
Rails GIS Hacks
Remote Geocoding
Geokit In Social Apps
Restaurant finder
Volunteering assistance to online geocoding services through a distributed kn...
GeoCommons Open-Source GeoCoder
Geohex v2 at GMS_nagoya
Geocoding Our Nation's Schools - Blue Raster NCES Stats-DC 2012 Presentation
Ad

More from Biplov Bhandari (12)

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

Recently uploaded (20)

PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Complications of Minimal Access Surgery at WLH
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Classroom Observation Tools for Teachers
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Pre independence Education in Inndia.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Computing-Curriculum for Schools in Ghana
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
2.FourierTransform-ShortQuestionswithAnswers.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Anesthesia in Laparoscopic Surgery in India
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Complications of Minimal Access Surgery at WLH
FourierSeries-QuestionsWithAnswers(Part-A).pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Classroom Observation Tools for Teachers
Final Presentation General Medicine 03-08-2024.pptx
Pre independence Education in Inndia.pdf
GDM (1) (1).pptx small presentation for students
STATICS OF THE RIGID BODIES Hibbelers.pdf
Sports Quiz easy sports quiz sports quiz
Microbial diseases, their pathogenesis and prophylaxis
O5-L3 Freight Transport Ops (International) V1.pdf
Computing-Curriculum for Schools in Ghana

Python Geopy

  • 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