Skip to content

Instantly share code, notes, and snippets.

@here-devblog-gists
Created November 14, 2016 16:02
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 here-devblog-gists/4069a5f40895116869addf64171d20eb to your computer and use it in GitHub Desktop.
Save here-devblog-gists/4069a5f40895116869addf64171d20eb to your computer and use it in GitHub Desktop.
var search = new H.places.Search(platform.getPlacesService());
function onResult(data) {
// Do something with data …
}
function onError(data) {
// Handle an error
}
// Search for hotels in Chinatown, San Francisco
var params = {
'q': 'hotel',
'at': '37.7942,-122.4070'
};
search.request(params, {}, onResult, onError);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment