I have read all the threads I can find on this but stuggling to solve it...
I have an sqlite db with about 50000 lat, lon (dblat and dblon) coordinates plus a third rangeextension (dbrangeextension) column in miles.
I want to return the rows where the dblat, dblon is within (x miles + rangeextension) of my gps coordinates, ie something like:-
select * from table1 where Location2.DistanceTo(dblocation) < 'x + dbrangeextension'
To do this I would need to initialise the db locations but I don't know the db locations before the query and can't see a way to initialise the location in the query, so I'm a bit stuck??
Becuase sqlite doesn't support acos, cos etc I can't do a haversine type lookup, can anyone help with a way to do this in a query please?
I have an sqlite db with about 50000 lat, lon (dblat and dblon) coordinates plus a third rangeextension (dbrangeextension) column in miles.
I want to return the rows where the dblat, dblon is within (x miles + rangeextension) of my gps coordinates, ie something like:-
select * from table1 where Location2.DistanceTo(dblocation) < 'x + dbrangeextension'
To do this I would need to initialise the db locations but I don't know the db locations before the query and can't see a way to initialise the location in the query, so I'm a bit stuck??
Becuase sqlite doesn't support acos, cos etc I can't do a haversine type lookup, can anyone help with a way to do this in a query please?