New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

js-google-api-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-google-api-wrapper - npm Package Compare versions

Comparing version 0.0.2 to 0.0.6

index.js

4

demo/src/autocomplete.js
var apiResponseStatus = require('../../src/apiResponseStatus');
var mapService = require('../../src/index.js');
var mapService = require('../../index.js');
var PREDICTION_TYPE = {

@@ -258,2 +258,2 @@ PLACE: 'PLACE',

li.appendChild(div);
}
}
var apiUrl = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyAXeUhU7ls2QVGj4tKECxvIy7LG5GNPeNA&libraries=places';
var mapService = require('../../src/index.js');
var mapService = require('../../index.js');
var geocoderService = null;

@@ -51,2 +51,2 @@

//
init();
init();
var apiUrl = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyAXeUhU7ls2QVGj4tKECxvIy7LG5GNPeNA&libraries=places';
var mapService = require('../../src/index.js');
var mapService = require('../../index.js');
var properties = require('./data.js');

@@ -122,2 +122,2 @@ var mapEl = document.querySelector('.map');

//
init();
init();
{
"name": "js-google-api-wrapper",
"version": "0.0.2",
"version": "0.0.6",
"description": "Javascript wrapper service and classes for Google APIs like AutocompleteService, Map and Markers",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,3 +12,3 @@ # js-google-api-wrapper

### Usage:
### Usage
```

@@ -25,9 +25,9 @@ var googleApiWrapper = require('js-google-api-wrapper');

### searchPlaces(google.maps.places.AutocompletionRequest):
### searchPlaces(google.maps.places.AutocompletionRequest)
Searches for place predictions. Returns Promise object resolved/rejected with Google API response.
### searchQueries(google.maps.places.QueryAutocompletionRequest):
### searchQueries(google.maps.places.QueryAutocompletionRequest)
Searches for query predictions. Returns Promise object resolved/rejected with Google API response.
### getPlaceDetailById(placeId):
### getPlaceDetailById(placeId)
Searches for place detail. Returns Promise object resolved/rejected with Google API response.

@@ -40,3 +40,3 @@

### Usage:
### Usage
```

@@ -53,3 +53,3 @@ var googleApiWrapper = require('js-google-api-wrapper');

### geocode(google.maps.GeocoderRequest):
### geocode(google.maps.GeocoderRequest)
Geocode/Reverse Gocode search input. Returns Promise object resolved/rejected with Google API response.

@@ -61,3 +61,3 @@

### Usage:
### Usage
```

@@ -75,9 +75,9 @@ var googleApiWrapper = require('js-google-api-wrapper');

### setMarkers(markers):
### setMarkers(markers)
Add new set of markers on the Map and Remove existing markers if there any on the Map.
### createMarkers():
### createMarkers()
Create new Markers on the page. Use setMarkers() to remove existing markers on the Map.
### removeAllMarkers():
### removeAllMarkers()
Remove all markers on the Map.

@@ -94,3 +94,3 @@

### nearbySearch(input:)
### nearbySearch(google.maps.places.PlaceSearchRequest)
Search for near by places on the map.

@@ -97,0 +97,0 @@

@@ -1,2 +0,2 @@

var promise = require('Promise');
var promise = require('promise');
var extend = require('extend');

@@ -3,0 +3,0 @@ var apiResponseStatus = require('./apiResponseStatus');

@@ -1,2 +0,2 @@

var promise = require('Promise');
var promise = require('promise');
var extend = require('extend');

@@ -3,0 +3,0 @@ var apiResponseStatus = require('./apiResponseStatus');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc