{"_id":"mercator-projection","_rev":"10-16fb69a9fe99c9d8b89e89829b525f47","name":"mercator-projection","description":"Translate latitude and longitude values into 'world' coordinates as used by the Google Map API.","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"mercator-projection","description":"Translate latitude and longitude values into a 'world' coordinates as used by the Google Map API.","version":"0.0.1","author":{"name":"Google"},"scripts":{"pretest":"npm install mocha should","test":"make test"},"repository":{"type":"git","url":"https://github.com/zacbarton/node-mercator-projection"},"keywords":["mercator","projection","map","google","googlemaps","transformations"],"bugs":{"url":"https://github.com/zacbarton/node-mercator-projection/issues"},"_id":"mercator-projection@0.0.1","dist":{"shasum":"eaefd70a988b8529706c75939258e008ab8150b9","tarball":"https://registry.npmjs.org/mercator-projection/-/mercator-projection-0.0.1.tgz","integrity":"sha512-JWVV9FJ0FRtOXUxUYemCklW4ln/UTjumJAcsZHi7SBdBqeUvkMklUUVihNgi+4KMfsaNGHpP9vCtQvj3rcg2XA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH4BQs8wSRaSqHV26+1PrJNH/Z/CUwO1+4EgRHBR6XywAiEAs/a6VipaDFj+BZACLMAARh5ZSMdSStrlFvd+Vm78dYQ="}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"zacbarton","email":"zacbarton@gmail.com"},"maintainers":[{"name":"zacbarton","email":"zacbarton@gmail.com"}]},"0.0.2":{"name":"mercator-projection","description":"Translate latitude and longitude values into 'world' coordinates as used by the Google Map API.","version":"0.0.2","author":{"name":"Google"},"scripts":{"pretest":"npm install mocha should","test":"make test"},"repository":{"type":"git","url":"https://github.com/zacbarton/node-mercator-projection"},"keywords":["mercator","projection","map","google","googlemaps","transformations"],"bugs":{"url":"https://github.com/zacbarton/node-mercator-projection/issues"},"_id":"mercator-projection@0.0.2","dist":{"shasum":"6195ec2d6e154d066020eef9626d7d79d5db0d3d","tarball":"https://registry.npmjs.org/mercator-projection/-/mercator-projection-0.0.2.tgz","integrity":"sha512-KMQP7YvOLigbDFxU+LMtR4+BUXZs/q4WnLbNByeMuCLKfoevG+YLnogHt1ihD2TPf8U+lGdCMr+vfdAph2B0Ug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpGvC33V2IGL38830uOAWjmlVs6XhdeQ5jvEgjyAznWgIgIF7yEWoeBNa/grcr7ALyG4t0xGehdLYFTCYkIhzzquc="}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"zacbarton","email":"zacbarton@gmail.com"},"maintainers":[{"name":"zacbarton","email":"zacbarton@gmail.com"}]}},"readme":"mercator-projection\n========\n\nWhenever the Google Maps API needs to translate a location in the world to a location on a map (the screen), it needs to first translate latitude and longitude values into a \"world\" coordinate. This translation is accomplished using the Mercator projection.\n\nMore details can be found [here](https://developers.google.com/maps/documentation/javascript/maptypes#WorldCoordinates).\n\nPorted from [here](https://developers.google.com/maps/documentation/javascript/examples/map-coordinates).\n\nInstallation\n--------\n\n    $ npm install -g mercator-projection\n\nExamples\n--------\n\nThe following examples show you how to use mercator-projection.\n\n```javascript\nvar merc = require('mercator-projection');\n\n// translate a latlng to a xy\nvar xy = merc.fromLatLngToPoint({lat: -27.470127, lng: 153.0147027});\n// {x: 236.81045525333332, y: 148.32879785796487}\n\n// translate a xy to a latlng\nvar ll = merc.fromPointToLatLng({x: 236.81045525333332, y: 148.32879785796487})\n// ~ {lat: -27.470127, lng: 153.0147027}\n```\n\nRunning tests\n----\n\n    $ npm test","maintainers":[{"name":"zacbarton","email":"zacbarton@gmail.com"}],"time":{"modified":"2022-06-19T17:51:09.548Z","created":"2014-06-13T07:25:28.616Z","0.0.1":"2014-06-13T07:25:30.518Z","0.0.2":"2014-06-13T11:20:11.729Z"},"readmeFilename":"README.md","keywords":["mercator","projection","map","google","googlemaps","transformations"],"repository":{"type":"git","url":"https://github.com/zacbarton/node-mercator-projection"},"author":{"name":"Google"},"bugs":{"url":"https://github.com/zacbarton/node-mercator-projection/issues"}}