Coder Social home page Coder Social logo

amapapi's Introduction

AMap API - 高德地图无限调用后端

基本思路

  • 高德的后端Restful接口限制频率和次数
  • 高德的前端SDK不限制接口调用频率和次数
  • 把前端转成后端的数据来源,以此无限调用API

实现逻辑

  • 写一个高德地图的前端(此处直接使用了模板)
  • 写一个JS的函数调用,使用HtmlUnit运行
  • "我爬我自己",得到返回值
  • 在Java中,将JS的异步回调,改为同步(以Java的多线程,代替JS的单线程)
  • 得到数据

支持接口

配置

  • 仅 "amap.api.key" 必填, 更改为你申请的高德 JS版本SDK 的APIKey

部署

  • mvn clean package
  • 使用得到的Jar包进行部署

amapapi's People

Contributors

icemap avatar

Stargazers

galen avatar

Watchers

James Cloos avatar

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.