I use the same method in my version 2 site. There I don't have this problem. $zoekafstand isn't the problem. $vanposlat is the problem. If $zoekpos is zutphen in the netherlands then the result $vanposlat = 52.133333. But in the calculation with the result $maxlat, the value of $vanposlat is 52 instead of 52.13333. That gives a difference with the V2 solution. So in $maxlat Th V2 result is 0,133333 higher and that is the correct result. Why I don't know. The same problem of course with $vanposlng. $maxlat = $vanposlat + ( $zoekafstand / (69 * 1.61)); // 69 miles per degree of latitude
-- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/JjOwxCKcF6MJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
