Skip to content

Instantly share code, notes, and snippets.

@dwl285
Created August 31, 2017 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwl285/e3acaa5b5f5ee93012715e5c52bfef3a to your computer and use it in GitHub Desktop.
Save dwl285/e3acaa5b5f5ee93012715e5c52bfef3a to your computer and use it in GitHub Desktop.
app.factory('places', ['$http', function($http) {
return $http.jsonp('https://en.wikipedia.org/w/api.php?action=query&list=geosearch&gsradius=5000&gscoord=40.741934%7C-74.004897&gslimit=30&format=json&callback=JSON_CALLBACK')
.success(function(data) {
return data;
})
.error(function(data) {
return data;
});
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment