Martin Milesich

Blog about my self, PHP, FreeBSD and other things that I found interesting…

Entries for the ‘Code Snippets’ Category

Dashed polylines on Google Maps

This is rewritten Bill Chadwick's BDCCPolyline.js script. I rewrote it because its not working correctly. In the redraw function he is expecting that Google will always draw all polylines but that's not true. Google will draw only visible polylines. I need to come with a solution how to uniquely identify a polyline. Then I found [...]

Comments (5)

Calculate geodesic distance between two points

/**
* Calculate geodesic distance (in meters) between two points specified by
* latitude/longitude using Vincenty inverse formula for ellipsoids
*
* from: Vincenty inverse formula - T Vincenty, "Direct and Inverse
* Solutions of Geodesics on the Ellipsoid with application of nested
* equations", Survey Review, vol XXII no 176, 1975
* http://www.ngs.noaa.gov/PUBS_LIB/inverse.pdf
*
[...]

Comments (9)

  
  • Certificates


  • Nike+

  • Categories

  • Links

  • Recent Posts

  • Petition

    stopsoftwarepatents.eu petition banner
  • Archives

  • Meta