Mapping questions.
Posted: 11 Feb 2022 11:13
For all you ancient and arcane geometers out there (LOL, mostly Mike I think)
1) I cannot for the life of me figure out how you set map boundaries to display, and would like to be able to do that.
2) given a point in lat, long... is there a shortcut (maybe some sort of reversal of haversine, so that I can proscribe points within an x mi or km radius of that point, without going thru every pair in my tables (addr and plac) and doing a haversine? Here is the concept, which I think you can immediately simplify.
given a table of lat longs, take the first in table and get all pairs in x radius moving them to another table, and nil the original entry. Having completed that round are there entries left? take the first entry available, and run thru that, and so on until the table is empty.
having these groupings, find the centerpoint of each grouping, mark it, and then check distance and direction of centerpoint to centerpoint. (there would be a master centerpoint, (my location) that every other center would be checked against. (I guess fundamentally, nodes on a network, traveling salesman, or something like that).
1) I cannot for the life of me figure out how you set map boundaries to display, and would like to be able to do that.
2) given a point in lat, long... is there a shortcut (maybe some sort of reversal of haversine, so that I can proscribe points within an x mi or km radius of that point, without going thru every pair in my tables (addr and plac) and doing a haversine? Here is the concept, which I think you can immediately simplify.
given a table of lat longs, take the first in table and get all pairs in x radius moving them to another table, and nil the original entry. Having completed that round are there entries left? take the first entry available, and run thru that, and so on until the table is empty.
having these groupings, find the centerpoint of each grouping, mark it, and then check distance and direction of centerpoint to centerpoint. (there would be a master centerpoint, (my location) that every other center would be checked against. (I guess fundamentally, nodes on a network, traveling salesman, or something like that).