I need to get the closest establishments in 100m radius from specific coordinates. I found the Google Places API sample code, but I don't use a map in my application, since this re
Solution 1:
$attrib probably is not a Node, I guess it's a jQuery-object.
Use
service = new google.maps.places.PlacesService($attrib[0]);
or without jQuery:
service = new google.maps.places
.PlacesService(document.getElementById('main')
.appendChild(document.createElement('div')));
Share
Post a Comment
for "Google Places Api Library Use Without Map - Javascript"
Post a Comment for "Google Places Api Library Use Without Map - Javascript"