Hi,
I am looking for somebody to convert a small javascript file into java source code.
The java source code - should create a function that accepts 3 parameters converter(northing,easting,grid_type)
Depending on the grid type "IE" or "GB" - will call the correct function and return the correct result.
double[] result = converter(343479, 373445, "IE");
double[] result = converter(479939, 136464, "GB");
<script language="javascript" src="[login to view URL]"></script>
<script>
//create a irish coordinate
irish=new GT_Irish();
[login to view URL](343479, 373445);
//convert to a wgs84 coordinate
wgs84 = [login to view URL]();
//now work with [login to view URL] and [login to view URL]
[login to view URL]("IRL: "+ [login to view URL] + ","+[login to view URL]);
//create a osgb coordinate
osgb=new GT_OSGB();
[login to view URL](479939, 136464);
//convert to a wgs84 coordinate
wgs84 = [login to view URL]();
//now work with [login to view URL] and [login to view URL]
[login to view URL]("UK: "+ [login to view URL] + ","+[login to view URL]);
</script>
I will be available to answer any questions.
The part of code that you have written seems pretty easy, but I know there must be a body to the function. I would like to see it and then bid accordingly !
Hope thats fine with you :)
Thanks,
Abhinay