private function hasValidMapPoints(points:Array):Boolean { var isValid:Boolean; if (points && points.length > 0) { isValid = true; for each (var point:MapPoint in points) { if (!isValidMapPoint(point)) { isValid = false; break; } } } return isValid; }
I am still hoping to figure this out. In the GeocoderComponent.mxml file, there is a function used to validate map points. Would anyone know or think it's even possible to alter this function to include a way to check for duplicate addresses? This is the only function I found that seems to the be a remotely correct starting point. private function hasValidMapPoints(points:Array):Boolean { var isValid:Boolean; if (points && points.length > 0) { isValid = true; for each (var point:MapPoint in points) { if (!isValidMapPoint(point)) { isValid = false; break; } } } return isValid; }The above code comes from line 695 in the GeocoderComponent.mxml file.
Hi Raffi,Unfortunately, I was never able to figure this out! I ended up taking the route of reworking my geocoder and creating different ones with different settings until I got the results that most aligned with what I was looking for. Due to our street centerline data inaccuracies, there are some overlaps in street ranges and in those cases, the duplicates still remained.Good luck!David
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.