Not sure if this is the right way to ask about this or not, but here is the problem.
Given the latitude of 26.746346081599476, how can I find 26.75 as 16 greater than the number, and 26.6875 as the 16th number below the number?
26.0 26.0625 26.125 26.1875 26.25 26.3125 26.375 26.4375 26.5 26.5625 26.625 26.6875 My Number: 26.746346081599476 26.75 26.8125 26.875 26.9375 27.0
I use JavaScript, so the answer will be useful, but not necessary. I could use it, but I'm looking for an elegant way to do it.
The larger the picture, the more I want to create standard tiles for the matching application I'm working on. We use Bing cards, and I download data on demand, every time the user clicks or zooms. It would be nice to use server-side caching for these requests, so if I standardized the requests sent to the server, I would get some cache hits. If I do not standardize server requests, it is unlikely that the same user will view the exact location at the same time.
Thus, it is possible to get caching with: /path/data.json?tl=26.6875,-80.6875&br=26.75,-80.75 than with: /path/data.json?tl=26.74946187679896,-80.10930061340332&br=26.7432342707028785857.09807.09807.09807.09807
Any external answers are also welcome.
javascript decimal math gis bing-maps
sheats
source share