Difference between revisions of "Geocode.py"

From edegan.com
Jump to navigation Jump to search
Line 1: Line 1:
 
[[Category: McNair Admin]]
 
[[Category: McNair Admin]]
  
 
=location=
 
  
 
  E:\McNair\Software\Scripts\Geocode.py
 
  E:\McNair\Software\Scripts\Geocode.py
  
=About=
+
=Name=
  
 
This is a python program that uses google maps to find the latitude and longitude for an address.
 
This is a python program that uses google maps to find the latitude and longitude for an address.
Line 16: Line 14:
 
That is a tab delimited ".txt" file.
 
That is a tab delimited ".txt" file.
  
=Use=
+
=Synopsis=
 +
 
 +
python Geocode.py <input.txt>
 +
 
 +
==Use==
  
 
In this location on ''powershell'' from the RDP (Must be from the RDP so it can import files):
 
In this location on ''powershell'' from the RDP (Must be from the RDP so it can import files):
Line 32: Line 34:
 
Which you will have to open with a right click into textpad.
 
Which you will have to open with a right click into textpad.
  
=Output=
+
==Output==
  
 
The output is a tab delimited with the three columns:
 
The output is a tab delimited with the three columns:

Revision as of 12:37, 18 July 2016


E:\McNair\Software\Scripts\Geocode.py

Name

This is a python program that uses google maps to find the latitude and longitude for an address.

Input is a file with columns:

<Business Name> <Address>

That is a tab delimited ".txt" file.

Synopsis

python Geocode.py <input.txt>

Use

In this location on powershell from the RDP (Must be from the RDP so it can import files):

E:\McNair\Software\Scripts

Enter this code:

python Geocode.py <input.txt>

The program will create an output file that looks like:

input.txt_coords

Which you will have to open with a right click into textpad.

Output

The output is a tab delimited with the three columns:

<Business Name> <Location["lat"]> <Location["lng"]>

Meaning Name, Latitude, Longitude in a tab delimited .txt file