Skip to content

Customer management tool. Demonstrates loading customer location data from JSON file and calculating Great Circle Distance (Vincenty formula) to find local customers

Notifications You must be signed in to change notification settings

darlenew/customers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

customers

Customer management tool. Demonstrates loading customer location data from JSON file and calculating Great Circle Distance (Vincenty formula) to find local customers.

usage

usage: customers.py [-h] [--file JSONFILE] [--origin ORIGIN] [--within WITHIN]

optional arguments: -h, --help show this help message and exit --file JSONFILE path to customer data --origin ORIGIN calculate distance to customers from this point, e.g. 53.3381985,-6.2592576 --within WITHIN radius to search for customers from the origin

example

Find customers within 100km of the specified lat,long.

customers.py --file customers.txt --origin 53.3381985,-6.2592576 --within 100

About

Customer management tool. Demonstrates loading customer location data from JSON file and calculating Great Circle Distance (Vincenty formula) to find local customers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages