Access to the Google Map API API.
node-world-address-api is a RESTful API built with Node.js to obtain world address with Google Map API integration
node-stripe-payment-api requires Node.js v6+ and npm installed to run.
First, you need to create a .env file in the root directory. The file contain the public and private keys of your Google Map API:
GOOGLE_API_KEY=YOUR_PRIVATE_KEY_HERE
Run the following command to download all the node dependencies:
npm install
To start the server:
npm start
The world address application will be running on port 3000
Admin required for all routes!
-
GET
/addressInfo?address=ADDRESS
- Find information of an addressaddress (REQUIRE): The full address
-
GET
/autocompleteAddress?address=ADDRESS
- Get a list of complete addresses of a given addressaddress (REQUIRE): Part of address
-
GET
/getAddressByLatLng?lat=LATITUDE&lng=LONGITUDE
- Get a list of complete addresses from given longitude and latitudelat (REQUIRE): The latitude of the address lng (REQUIRE): The longitude of the address
-
GET
/getNearbyInfo?lat=LATITUDE&lng=LONGITUDE&radius=RADIUS&type=TYPE&keyword=KEYWORDS
- List all paymentslat (REQUIRE): The latitude of the address lng (REQUIRE): The longitude of the address radius (Optional): The radius from the given polint in number, defaul is 1500 type (Optional): Ex. Restaurant, Hotel, etc keyword (Optional): Ex. Stack
- Add authentication
- For more, see the issue tracker.
Hoyeung Lai (johnl4112@gmail.com).
MIT