Python: OpenStreetMap API - add Longitudes and Latitudes by using Geopy module

preview_player
Показать описание
In this Python video tutorial I demonstrate how to correctly generate Longitude and Latitude of an any spatial object that is defined by it's address features in Pandas (Python module) dataframe by using OpenStreetMap API that is very friendly with Python environment and add those Longitudes and Latitudes to an existing data table.

Of course, you will see how to read a dataframe from .CSV Excel file directly to Python.

In this demonstration I am using PANDAS module and Jupyter Notebook tool but it will work with any code editor, such Atom or Brackets.

The Content of video tutorial is:
0:02 - The Idea of video tutorial
0:32 - 1st step: Import modules and read .csv datafile
2:39 - 2nd step: Import geopy module
3:16 - 3rd step: Set a connection to OpenStreetMap (Nominatim)
5:13 - 4th step: Set a full address field to a dataframe
7:51 - 5th step: Set values to Longitudes and Latitudes

This tutorial good for geographic specialist or GIS developers.

Good to know relative information:

If you need some more information, just write it below in comments.

Other my Python video tutorials:

P.S. sorry for my english acsent :)

Please SUBSCRIBE ME for more Python videos in my Youtube channel!

Thank you for watching!
Рекомендации по теме
Комментарии
Автор

Thank you so much! I just had to make a change here : nom = Nominatim() --> nom =

jonaslamotte
Автор

Thank you very much for this tutorial. You have helped me a lot with this.

veteatomarporculo
Автор

Highly effective! Many thnx for your time, and effort.

scientistga
Автор

am getting None in that coordinates column why??

Travellife
Автор

Nice video sir,
And i need one help from u sir, I'm doing one project work, there i need to use Google api and i need to find shortest path.. will u help me sir?

chandanbr
Автор

Great Video. I have a question. I´m working on a project where i have a gpx track with many latitudes and longitudes. Is it possible to write a python script where I get all the attributes/tags like "highway", "lanes", "maxspeed" next to the gps coordinates? E.g. a csv table like this: Latitude | Longitude | Highway | Lanes |

BazingasSheldon
Автор

Can anyone help me out? At step four (minute 5:14) I get an error that reads "KeyError Traceback (most recent call last)
". Any help would be appreciated

dawsona.oliver
Автор

what about the NAN values ? whats wrong there ? Any solutions Suggested

miss_tech
Автор

thanks you so much, from aryavart (bharat)

sanukumar
Автор

I have one doubt when I submit the address of any office or institutes it gives None as an output but if I give only street address it give its coordinates any suggestion guys? and I think @vytautas try to explain it at the end of this video but he did not complete it

Travellife
Автор

Hii how to add the Google Earth image in python..

chitrasindhuja
Автор

Thank you for the video. Can also pls let me know how to geo location(relative location). input excel has only lat and long. Thank you

senthilkumarm
Автор

If I have both lat, long as string, how can I get the full address of it ?!

petersamoaa
Автор

Hello sir it working but as I proceed the line from geopy.geocoders import Nomitatim there is showing in pc can you help me? regarding this? AS WE PROCEED NOM= NOMINATIM() THERE IS SHOWING THIS
UserWarning

sooneeldubey
Автор

Hi,
very proffessional and useful....nice job! Please can you explain how you created YT video?
Best regards, Isaco

high-jump-marvel
Автор

How to create a map similar to google maps without using Google API?

sudharshanenterprises
Автор

This is not showing open street maps at all!

fatemehendijani