Index: lib/google_map_search.dart |
diff --git a/lib/google_map_search.dart b/lib/google_map_search.dart |
index fac3fbd1e88275c67ccd3cc99e08fb4de84ae88d..70cd4679fd129b80796f83b5d4bcdc1ff1b5c67b 100644 |
--- a/lib/google_map_search.dart |
+++ b/lib/google_map_search.dart |
@@ -17,8 +17,8 @@ import 'package:polymer_interop/polymer_interop.dart'; |
/// #### Example: |
/// |
/// <template is="dom-bind"> |
-/// <google-map-search map="[[map]]" libraries="places" query="Pizza" |
-/// results="{{results}}"></google-map-search> |
+/// <google-map-search map="[[map]]" query="Pizza" results="{{results}}"> |
+/// </google-map-search> |
/// <google-map map="{{map}}" latitude="37.779" |
/// longitude="-122.3892"> |
/// <template is="dom-repeat" items="{{results}}" as="marker"> |
@@ -85,6 +85,11 @@ class GoogleMapSearch extends HtmlElement with CustomElementProxyMixin, PolymerB |
String get types => jsElement[r'types']; |
set types(String value) { jsElement[r'types'] = value; } |
+ /// Fetches details for a given place. |
+ /// [placeId]: The place id. |
+ getDetails(String placeId) => |
+ jsElement.callMethod('getDetails', [placeId]); |
+ |
/// Perform a search using for `query` for the search term. |
search() => |
jsElement.callMethod('search', []); |