Skip to content

Dave Addey's SQLite extension for calculating distance using two pairs of latitude/longitude coordinates for use with the sqlite cli.

Notifications You must be signed in to change notification settings

cwarden/sqlite-distance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distance Extension for SQLite

Dave Addey's SQLite extension for calculating distance using two pairs of latitude/longitude coordinates for use with the sqlite cli.

Building

Linux

$ make

Usage

$ sqlite3 -cmd '.load ./distance' example.sqlite
sqlite> SELECT name FROM location ORDER BY DISTANCE(latitude, longitude, 33.8120742,-117.9188774) LIMIT 10;

Credits

Dave Addey wrote the SQLite extension. I just wrapped it up for use on the command line.

About

Dave Addey's SQLite extension for calculating distance using two pairs of latitude/longitude coordinates for use with the sqlite cli.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published