Code Monkey home page Code Monkey logo

elevation-js's Introduction

elevation-js

A client javascript port of gsi-cyberjapan/elevation-php

Demo

http://frogcat.github.io/elevation-js/

Example

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>getelevation-js</title>
<script src="getelevation.js"></script>
</head>
<body>
  <script>
    getelevation(142.558594, 43.153102, function(json) {
      console.log(json);
    });
  </script>
</body>
</html>

Syntax

getelevation(longitude,latitude,callback)

longitude

経度

latitude

緯度

callback

標高の取得後に実行されるコールバック関数。 コールバック関数の第一引数に以下のようなオブジェクトが渡される。 詳細は http://maps.gsi.go.jp/development/api.html を参照。

{ elevation : 120, hsrc : "10m" }

Note

このライブラリは XMLHttpRequest を使用して 地理院地図・標高タイル から標高データを取得するものです。

elevation-js's People

Contributors

frogcat avatar

Stargazers

 avatar

Watchers

 avatar

elevation-js's Issues

About Lincense

Hi.

I have tried to use this javascript code and very interesting in this.

I'm afraid that there is no description of lincense.

MIT License?

Could you teach me?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.