Hi,
I'm trying to figure how to do reverse geocoding that will allow me to specify the exact object type I'd like to reverse geocode against. For example, in the rest api there is URL paramter for featureTypes = PointAddress. I don't want to reverse geocode against the street segment, just address points. I can't see this type of parameter in the JS API 4.14. I only see the location and locationType parameter in the API docs. Below is a sample block of code.
let params = {
location: evt.mapPoint,
locationType: "rooftop"
};
geocoder.locationToAddress(params, options)
.then(function(response) {
console.log(response.attributes)
var address = response.attributes.Address + ', ' + response.attributes.City + ', ' + response.attributes.Region + ', ' + response.attributes.Postal;
showPopup(address, evt.mapPoint);
}, function(err) {
showPopup("No address found.", evt.mapPoint);
});
}
});