@@ -21,7 +21,7 @@ or just manually grab the file `dist/proj4.js`
the basic signature is:
```javascript
proj4(projection1[,projection2,coordinates])
proj4(fromProjection[,toProjection2,coordinates])
```
Projections can be proj or wkt strings, or a proj4.Proj object.
@@ -31,14 +31,39 @@ Coordinates may be proj4.Point objects, an object of the form `{x:x,y:y}`, or an
When all 3 arguments are given, the result is that the coordinates are transformed from projection1 to projection 2. And returned in the same format that they were given in.
//I'm not going to redefine those two in latter examples.
proj4(firstProjection,secondProjection,[2,5]);
// [-2690666.2977344505, 3662659.885459918]
```
If only 1 projection is given then it is assumed that it is being projected *from* WGS84 (fromProjection is WGS84).
If only 1 projection is given then it is assumed that it is being projected *from* WGS84 (projection1 is WGS84).
```javascript
proj4(firstProjection,[-71,41]);
// [242075.00535055372, 750123.32090043]
```
If no coordinates are given an object with two methods is returned, its methods are `forward` which projects from the first projection to the second and `inverse` which projects from the second to the first.
If no coordinates are given an object with two methods is returned, its methods are `forward` which projects from the first projection to the second and `reverse` which projects from the second to the first.
##Developing
to set up build tools make sure you have node installed and run `npm install`