0:00
uh hello guys welcome to this video so
0:02
in this video I will show you how to
0:04
implement reverse geocoding inside
0:07
Python reverse geocoding means that you
0:09
provide the latitude and longitude from
0:12
that we will be uh converting these
0:15
coordinates into a physical address so
0:18
in Python there is a module that you can
0:20
use for completely free it's called as
0:24
gopy the command is simple you simply
0:27
execute this command to install this
0:29
module pip install gopy i've already
0:32
installed it so now if I run this script
0:36
here you will see we have provided this
0:38
uh latitude and longitude and we are
0:40
using this reverse method which is doing
0:43
the reverse geocoding it will convert
0:46
these coordinates into a address so if I
0:49
execute this now script
0:52
here so you will see it will convert
0:55
this latitude and longitude into the
0:57
complete address so now you can actually
1:01
location the address the full address
1:04
New York you will see that in this way
1:07
we can implement reverse geocoding so
1:10
here you can replace the coordinates of
1:12
anything let's suppose I say Sydney
1:15
latitude and longitude and I
1:29
coordinates uh we can ask a chat GPT
1:33
here find the latitude and longitude of
1:44
SID so what we can do we can simply
1:47
paste these the latitude here which is -
1:55
33 so you just plug the coordinates and
1:58
then it will give you the physical
2:01
address so I'm just confirming you just
2:05
showing you that this script works with
2:08
all the coordinates so if you just run
2:09
the script now you will see it will give
2:12
the full location you can see
2:16
it's Sydney you will see which is
2:18
located inside Australia so you can see
2:20
it's completely works so now to
2:23
initialize this module I will show you
2:25
step by step just create a simple app py
2:29
file and then from this you first of all
2:34
module like this from this we need to
2:38
nominate and then we need to initialize
2:41
this so module here we can specify the
2:46
user agent here you can initialize any
2:51
say so this name can be anything you
2:54
first of all initialize your user agent
2:56
you require the module after that you
3:08
reverse so here we specify the
3:11
coordinates here the latitude and
3:13
longitude latitude and longitude are
3:16
nothing but it is used to plot locations
3:19
on the physical map Google map here you
3:23
specify the latitude and longitude and
3:25
then it will give you the entire
3:27
location so this is actually your
3:38
address that's all that we need to do
3:40
and if you run this application you will
3:46
uh go locator is not defined sorry this
3:55
gio so this is a very handy module
3:58
inside Python which does the reverse geo
4:00
coding like this you will see now it
4:03
gives you the entire address
4:07
so it can be used to build out complex
4:11
web applications and the nice part is
4:13
that it's completely free simply install
4:15
this and start using it and also check
4:18
out my website as well
4:20
freemediattools.com uh which contains