Hi everybody
I have problem with findNearbyJSON web-service
I'm requesting it with such parameters in jQuery
Code:
$.ajax({
url: "http://api.geonames.org/findNearbyJSON",
dataType: 'json',
data: {
lat: pos.lat(),
lng: pos.lng(),
featureClass: 'P',
featureCode: ['PPLA','PPLA2', 'PPLA3', 'PPLA4'],
username: 'user_name',
style: 'MEDIUM',
lang: 'local',
radius: 20,
maxRows: 40
},
jsonp: false,
jsonpCallback: "callbackName",
success: on_city_found_callback
});
Now I wonder why in response I get places with FeatureCode PPL and other. I want only those featureCodes that I provide in array when requesting service? Can somebody help me with that?