googlemaps/google-maps-services-js là dự án tập trung giao diện trên GitHub với 3.1k sao, viết chủ yếu bằng TypeScript. Node.js client library for Google Maps API Web Services
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Some parts of this library are only compatible with Legacy Services.
Using the Legacy Services requires enabling each API on your Google Cloud project by following the direct links:
Places API (Legacy),
Directions API (Legacy),
Distance Matrix API (Legacy).
The newer Google Maps APIs each provide their own npm-package:
@googlemaps/places
@googlemaps/routing
@googlemaps/maps-platform-datasets
@googlemaps/addressvalidation
Description
This client library brings the following [Google Maps Web Services APIs] to your server-side Node.js applications:
Maps Static API
Elevation API
Geocoding API
Roads API
Time Zone API
As well as the following legacy APIs:
Directions API (Legacy)
Places API (Legacy)
Distance Matrix API (Legacy)
Requirements
Sign up with Google Maps Platform
A Google Maps Platform project with the desired API(s) from the above list enabled
An API key associated with the project above
API Key Security
This client library is designed for use in server-side applications.
In either case, it is important to add API key restrictions to improve its security. Additional security measures, such as hiding your key
from version control, should also be put in place to further improve the security of your API key.
Check out the API Security Best Practices guide to learn more.
[!NOTE] This library for server-side only
Attempting to use it client-side, in either the browser or any other environment like React Native, may in some cases work, but mostly will not. Please refrain from reporting issues with these environments when attempting to use them, since server-side Node.js applications is the only supported environment for this library.
For other environments, try the Maps JavaScript API, which contains a comparable feature set, and is explicitly intended for use with client-side JavaScript.
Usage
npm install @googlemaps/google-maps-services-js
Below is a simple example calling the elevation method on the client class.
Import the Google Maps Client using TypeScript and ES6 module:
import {Client} from "@googlemaps/google-maps-services-js";
Alternatively using JavaScript without ES6 module support:
For more information, see the reference documentation. The TypeScript types are the authoritative documentation for this library and may differ slightly from the descriptions.
Developing
In order to run the end-to-end tests, you'll need to supply your API key via an
environment variable.
$ export MAPS_API_KEY=YOUR_API_KEY
$ npm test
Migration
This section discusses the migration from @google/maps to @googlemaps/google-maps-services-js and the differences between the two.
Note: The two libraries do not share any methods or interfaces.
The primary difference is @google/maps exposes a public method that takes individual parameters as arguments while @googlemaps/google-maps-services-js exposes methods that take params, headers, body, instance(see Axios). This allows direct access to the transport layer without the complexity that was inherent in the old library. Below are two examples.
The primary differences are in the following table.
Old
New
Can provide params
Can provide params, headers, instance, timeout (see Axios Request Config)
API key configured at Client
API key configured per method in params object
Retry is supported
Retry is configurable via axios-retry or retry-axios
Does not use promises by default
Promises are default
Typings are in @types/googlemaps
Typings are included
Does not support keep alive
Supports keep alive
Does not support interceptors
Supports interceptors
Does not support cancelalation
Supports cancellation
Premium Plan Authentication
Authentication via client ID and URL signing secret is provided to support legacy applications that use the Google Maps Platform Premium Plan. The Google Maps Platform Premium Plan is no longer available for sign up or new customers. All new applications must use API keys.
Contributions are welcome and encouraged! If you'd like to contribute, send us a pull request and refer to our code of conduct and contributing guide.
Terms of Service
This library uses Google Maps Platform services. Use of Google Maps Platform services through this library is subject to the Google Maps Platform Terms of Service.
This library is not a Google Maps Platform Core Service. Therefore, the Google Maps Platform Terms of Service (e.g. Technical Support Services, Service Level Agreements, and Deprecation Policy) do not apply to the code in this library.
European Economic Area (EEA) developers
If your billing address is in the European Economic Area, effective on 8 July 2025, the Google Maps Platform EEA Terms of Service will apply to your use of the Services. Functionality varies by region. Learn more.
Support
This library is offered via an open source license. It is not governed by the Google Maps Platform Support [Technical Support Services Guidelines, the SLA, or the Deprecation Policy. However, any Google Maps Platform services used by the library remain subject to the Google Maps Platform Terms of Service.
This library adheres to semantic versioning to indicate when backwards-incompatible changes are introduced. Accordingly, while the library is in version 0.x, backwards-incompatible changes may be introduced at any time.
If you find a bug, or have a feature request, please file an issue on GitHub. If you would like to get answers to technical questions from other Google Maps Platform developers, ask through one of our developer community channels. If you'd like to contribute, please check the contributing guide.
You can also discuss this library on our Discord server.
googlemaps/google-maps-services-js thuộc nhóm Frontend trên TopGit, cùng 10 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về googlemaps/google-maps-services-js ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/googlemaps/google-maps-services-js là nguồn chính thức.
googlemaps/google-maps-services-js có bao nhiêu sao?
googlemaps/google-maps-services-js có 3.1k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/googlemaps/google-maps-services-js. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
googlemaps/google-maps-services-js có phải mã nguồn mở không?
Có — googlemaps/google-maps-services-js phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/googlemaps/google-maps-services-js.
googlemaps/google-maps-services-js còn đang phát triển không?
Commit gần nhất trên googlemaps/google-maps-services-js là 29 ngày trước (theo timestamp GitHub). Repo có 653 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
googlemaps/google-maps-services-js dùng license gì?
googlemaps/google-maps-services-js phát hành theo license Apache-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
googlemaps/google-maps-services-js là gì?
googlemaps/google-maps-services-js (googlemaps/google-maps-services-js) là dự án TypeScript trên GitHub. Theo mô tả gốc: Node.js client library for Google Maps API Web Services
googlemaps/google-maps-services-js viết bằng ngôn ngữ gì?
googlemaps/google-maps-services-js chủ yếu viết bằng TypeScript. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc google-maps-services-js có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về google-maps-services-js.