MySQL Stored Geo Functions is a small collection of MySQL stored function definitions for working with Lat,Long coordinates.
You can find it at its GitHub page: MySQL Stored Geo Functions.
Currently there are three available operations:
- Buffering a point (by meters or miles)
- Calculating distance between two points (the Haversine function)
- Creating a line given a point, bearing and distance (in meters or miles)