1.0.0 • Published 2 years ago

google-maps-api-example v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

MIT