1.0.0 • Published 3 years ago
google-maps-api-example v1.0.0
google-maps-api-example
Example of using Google Maps API in Node.js, browser, etc.
Installation
npm install google-maps-api-example;
Online demo
Click here for an online demo.
Node.js usage
Postal Code Lookup by Address.
You can find the zip code using the cli/postalCodeLookup.js command line.
Command help.
node cli/postalCodeLookup.js --help
# Usage: postalCodeLookup [options]
#
# Postal Code Lookup by Address
#
# Options:
# --address <string> Address you want to find the postcode
# --key <string> Google Maps API Key
# -h, --help display help for command
Find the Tokyo Skytree postal code.
node cli/postalCodeLookup.js --key YOUR_API_KEY --address "Tokyo Skytree"
# Postal code 131-0045 found
You can use different languages for your address.
For example, find a postal code at a Japanese address
node cli/postalCodeLookup.js --key YOUR_API_KEY --address "東京スカイツリー"
# Postal code 131-0045 found
Author
Takuya Motoshima
License
1.0.0
3 years ago