Skip to content

Commit e802932

Browse files
committed
Release 2.6.0 LocationIntelligenceSDK-JavaScript
1 parent 54caf24 commit e802932

File tree

4 files changed

+4467
-2
lines changed

4 files changed

+4467
-2
lines changed

src/main/javascript/geojs/v1/geoSearch.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ GEOAPIS_V1_INHERIT(GEOAPIS_V1.baseService, GEOAPIS_V1.geoSearch);
2727
* @return response object or calls callback
2828
*/
2929
GEOAPIS_V1.geoSearch.prototype.getLocation = function(params, callback){
30-
var apiUrl = '/geosearch/v1/locations?searchText='+encodeURIComponent(params.searchText)+'&latitude='+encodeURIComponent(params.latitude)+'&longitude='+encodeURIComponent(params.longitude);
31-
var optionalList = ['maxCandidates', 'searchRadius', 'searchRadiusUnit'];
30+
var apiUrl = '/geosearch/v1/locations?searchText='+encodeURIComponent(params.searchText);
31+
32+
var optionalList = ['latitude','longitude','country','maxCandidates', 'searchRadius', 'searchRadiusUnit'];
3233
apiUrl = this.apiGetUrl(params, optionalList, apiUrl);
3334
if(callback !== undefined){
3435
this.callApiAsync(apiUrl, callback);

0 commit comments

Comments
 (0)