Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ApiWrapper = require('api-wrapper');
- mjpClient = ApiWrapper.create({
- root: 'https://maps.googleapis.com/maps/api/',
- get: {
- findLocation: '/geocode/xml?address|key'
- }
- });
- log = mjpClient.findLocation({address: "Одесса Канатная 2", key: "AIzaSyBF3mYWZcd8ghOnaHwwwn50obk2JSiStHY"}, cbfindLocation);
- console.log(log);
- function cbfindLocation(error, message, body){
- if (!error) {
- console.log('Got response:', body);
- } else {
- console.warn('Got error:', error);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement