quad_tile

package module
v0.0.0-...-7369caa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2019 License: MIT Imports: 2 Imported by: 0

README

quad_tile

Golang implementation of QuadTile to work with OpenStreetMap API database.

Usage

package main

import (
	"fmt"
	"github.com/measure-compute-visualize/quad_tile"
)

func main() {
	tile := quad_tile.TileForPoint(139.734531, 35.607090)
	fmt.Println(tile)
	// 3977143975

	tiles := quad_tile.TilesForArea(139.73424, 35.60433, 139.73673, 35.60707)
	fmt.Println(tiles)
	// [3977143974 3977143975]
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TileForPoint

func TileForPoint(longitude, latitude float64) int64

func TilesForArea

func TilesForArea(minLongitude, minLatitude, maxLongitude, maxLatitude float64) []int64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL