GoogleMap map image request data restrictions Solution

Source: Internet
Author: User

Recently, GoogleMap is no longer completely free of charge for requests to access the map service through APIS. You can generate up to 25000 map download tasks per API every day, and the number of map images is limited to 2500. This will have a great impact on many applications developed using the Google Map API, especially in China. Many of my friends have not found any way to solve this problem.

This method is to set up a Map image Cache Server between our client and the Google Map server, first caching the required Map on the Map image cache server. When the client requests, first, get it from the cache server. If not, get it from the Google Map server, save it locally, and then return it to the client, this reduces the number of requests to the Google Map image server.

Of course, at the beginning of this method, the request volume will still be large, but by the end, the number will decrease.

The general process is as follows:

The process is very simple, and the intermediate implementation method is not complicated. As long as the above functions can be implemented, it is not important to use the platform. The following is the method for defining the map type at the front end:

<! DOCTYPE html> 

Tip: the code can be modified before running!

By LionGIS
Email: liongis@163.com
QQ: 1366940902
Source: http://liongis.cnblogs.com/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.