Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sign a URL for Google Maps Platform requests.

License

NotificationsYou must be signed in to change notification settings

googlemaps/js-url-signature

npmBuildReleasecodecovGitHub contributorssemantic-release

Description

Sign a URL for Google Maps Platform requests.

Warning: It is not recommended to use this library in client side applications to avoid exposing the secret used to sign the URL.

Install

Available via npm as the package@googlemaps/url-signature.

npm i @googlemaps/url-signature

Documentation

Check out thereference documentation.

Example

Create a signature for a Google Maps requestURL or url string.

constsignature=createSignature("https://example.com/some-path?foo=bar","secret");

Returns a newURL having a signature parameter.

constsignedUrl=signUrl("https://example.com/some-path?foo=bar","secret");signedUrl.href;// "https://example.com/some-path?foo=bar&signature=..."

Create a signature for a path and query string using Hmac SHA1.

constsignature=createSignatureForPathAndQuery("/some-path?foo=bar","secret");

Note: This is not an officially supported Google product

About

Sign a URL for Google Maps Platform requests.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Contributors7


[8]ページ先頭

©2009-2025 Movatter.jp