1

Has anyone come across a free web service / REST API to transform coordinates?

I'm particularly interested in transforming from WGS84 to: New Zealand Geodetic Datum 2000 (NZGD2000 / NZTM) and New Zealand Geodetic Datum 1949 (NZGD1949 / NZMG). Would be a bonus if I could also get the grid version of coordinates as well.

Perhaps there's a JavaScript / C# library out there that I can use and host my own service?

2

You can use Proj4JS to do the conversion in the browser: either pass it EPSG codes (EPSG:2193 for NZGD 2000, EPSG:27200 for NZGD 1949). They have a user guide with further details of its configuration.

  • Thanks scw - perfect fit once I used WGS84 as the source instead of EPSG:4236 they gave in their example code. – Gavin May 21 '11 at 7:48
  • perhaps let them know they have a typo, I'm guessing they meant to put EPSG:4326 which is the correct code for WGS84. – scw May 22 '11 at 18:30
  • They have both EPSG:4326 and WGS84 - seem to be slighly different definitions though. – Gavin May 22 '11 at 20:50
  • But yes, does look like a typo on example. Was getting confused myself! Can't find any contact options or registration options to get in contact with the project creators though to let them know. – Gavin May 23 '11 at 23:21
  • 2
    Note that Proj4JS doesn't use the grid-based conversion, so its accuracy is limited to +/- 4m according to LINZ – rcoup Jun 8 '11 at 2:18
3

I use http://apps.linz.govt.nz/coordinate-conversion/ all the time...

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

-1

You should really just use this site its much easier than the others unless you wish to do this within your java code:

https://epsg.io/transform#s_srs=2193&t_srs=4326

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.