Maps API for JavaScript Developer's Guide

H.geo

Namespace Summary

This namespace provides functionality for geographic computation.

Property Summary

Table 1. Properties
Properties

static mercator : {H.geo.IProjection}

This property represents a spherical Mercator projection. It represents the Earth as a sphere and maps geographic coordinates to a cooresponding two-dimensional space. The Map uses this projection by default.

Method Summary

Table 2. Methods
Methods

static isDBC (lng1, lng2) : {boolean}

This method checks whether two longitudes form a leg which crosses the date border.

Namespace Description

This namespace provides functionality for geographic computation.

Property Details

static mercator: {H.geo.IProjection}

This property represents a spherical Mercator projection. It represents the Earth as a sphere and maps geographic coordinates to a cooresponding two-dimensional space. The Map uses this projection by default.

Method Details

static isDBC (lng1, lng2) : {boolean}

This method checks whether two longitudes form a leg which crosses the date border.

Parameters:
 
lng1:
{H.geo.Longitude}
 
the start longitude of the leg
lng2:
{H.geo.Longitude}
 
the end longitude of the leg
Returns:
 
{boolean}
true if the leg crosses the date border, otherwise false

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.