GeoHey API.JS 1.1.1

产品更新 Jul 22, 2015

在线文档:http://dist.geohey.com/g-api.js/1.1.1/doc/index.html

在线JS库文件:http://dist.geohey.com/g-api.js/1.1.1/g-api.min.js

离线包下载:http://dist.geohey.com/g-api.js/g-api-js-1.1.1.zip

更新日志
  • 未识别的错误代码给出提示信息
  • 修正文档中没有 mapping 服务的错误
  • 添加云端使用的文档
使用示例
<!doctype html>
<html>
<head>
	<meta charset='utf-8'>
</head>
<body>
	<script src="http://dist.geohey.com/g-api.js/latest/g-api.min.js"></script>
	<script>
		var GAPI = require('GAPI');
		GAPI.init('OGJ9OGI4YzAyNmJhNDI3Y2FmOWRmNjBlMTdhZiM4NmM'); // 浏览器访问凭证

		GAPI.geocoding.geocode('鼓楼', {
			admin: '北京'
		}, function(data) {
			console.log(data);
		}, function(error) {
			console.error(error);
		});
	</script>
</body>
</html>

WuYF

Founder & CTO

评论正在加载...
Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
分享