Sha256: 8da381f03b199717ec2b0e473207d15d897b2e14da8049f17de3e3fa8b161d03

Contents?: true

Size: 553 Bytes

Versions: 7

Compression:

Stored size: 553 Bytes

Contents

# Indexing functions

These function are used for finding the H3 index containing coordinates, and for finding the center and boundary of H3 indexes.

## geoToH3

```
H3Index geoToH3(const GeoCoord *g, int res);
```

Indexes the location at the specified resolution, returning the index of the cell containing the location.

Returns 0 on error.

## h3ToGeo

```
void h3ToGeo(H3Index h3, GeoCoord *g);
```

Finds the centroid of the index.

## h3ToGeoBoundary

```
void h3ToGeoBoundary(H3Index h3, GeoBoundary *gp);
```

Finds the boundary of the index.

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
h3-3.7.2 ext/h3/src/docs/api/indexing.md
h3-3.7.1 ext/h3/src/docs/api/indexing.md
h3-3.6.2 ext/h3/src/docs/api/indexing.md
h3-3.6.1 ext/h3/src/docs/api/indexing.md
h3-3.6.0 ext/h3/src/docs/api/indexing.md
h3-3.5.1 ext/h3/src/docs/api/indexing.md
h3-3.5.0 ext/h3/src/docs/api/indexing.md