Skip to content

michealbeatty/Random-Coords

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Small program used to generate random coordinate points in the contiguous United States and then write them to a CSV file. Program also reverse geocodes the latitude, longitude to retrieve an address if one is available

This program uses Python 2.7

Dependencies

pygeocoder

Usage

Running the program

$ python randomcoords.py number_of_points output_file

It is recommended that you limit the number of points to no more than ten at any one time otherwise you may run up against the limits set by Google.

Because this program appends results to the specified file, the user will be prompted to proceed if the specified output file already exists.

Output format

The points are written to the CSV file in the following format

longitude, latitude, address

(see example.csv provided in the repository)

TODO

  • Add an option to generate Canadian points.

About

A tool to generate random geographic coordinates in the contiguous U.S.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages