Trying to solve it for couple days and still no solution :( There is route on the map A to B it is a straight line. A and B is lat-Lon coords. I need to find if point C (lat-lon) is within certain distance from the route. I need this solution to be 'very fast' since it might be many such points. Here is a picture:
http://www.framesbyleon.com/images/map.png
A -> B is a route, I need to calculate that rectangle (or stripe) around the route and use its coords to filter results with MySql. In human language it is like driving on a highway and pick up something if it isnt that far off. It seems I need to convert coords to Cartesian and do calculations? Thanks in advance