Maps API for JavaScript Developer's Guide

H.geo.IProjection

Interface Summary

Interface which describes map projection. Functions transform geo coordinates to EPSG3857 coordinate reference system, which is x,y values in range 0..1

[ For full details, see the Interface Details ]

Method Summary

Table 1. Methods
Methods

latLngToPoint (lat, lng, opt_out) : {H.math.Point}

This method transforms geographical lat/lng coordinates to a projected point in range 0...1

xyToGeo (x, y, opt_out) : {H.geo.Point}

This method transforms projected x/y coordinates in range 0...1 to a geographical point

pointToGeo (point, opt_out) : {H.geo.Point}

This method transforms a projected point in range 0...1 to a geographical point

geoToPoint (geoPoint, opt_out) : {H.math.Point}

This method transforms a geographical point to a projected point in range 0...1

Interface Description

Interface which describes map projection. Functions transform geo coordinates to EPSG3857 coordinate reference system, which is x,y values in range 0..1

Method Details

latLngToPoint (lat, lng, opt_out) : {H.math.Point}

This method transforms geographical lat/lng coordinates to a projected point in range 0...1

Parameters:
 
lat:
{number}
 
latitude
lng:
{number}
 
longitude
opt_out:
{H.math.Point=} [optional]
 
an optional point to store the result
Returns:
 
{H.math.Point}

xyToGeo (x, y, opt_out) : {H.geo.Point}

This method transforms projected x/y coordinates in range 0...1 to a geographical point

Parameters:
 
x:
{number}
 
y:
{number}
 
opt_out:
{H.geo.Point=} [optional]
 
an optional point to store the result
Returns:
 
{H.geo.Point}

pointToGeo (point, opt_out) : {H.geo.Point}

This method transforms a projected point in range 0...1 to a geographical point

Parameters:
 
point:
{H.math.IPoint}
 
opt_out:
{H.geo.Point=} [optional]
 
an optional point to store the result
Returns:
 
{H.geo.Point}

geoToPoint (geoPoint, opt_out) : {H.math.Point}

This method transforms a geographical point to a projected point in range 0...1

Parameters:
 
geoPoint:
{H.geo.IPoint}
 
opt_out:
{H.math.Point=} [optional]
 
An optional point to store the result
Returns:
 
{H.math.Point}

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.