Select to view content in your preferred language

Check point inside polygon (city boundary)

2038
0
03-05-2014 03:45 AM
MayJeff
Deactivated User
Currently, I am using World Geocoding Service(http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer) and create a map extent to verify the address point whether inside the city boundary or not then show a pop up message.  Map extent works great for xy boundary but point still show if the boundary is in irregular shape.
So how do you check if a point is inside a city boundary and using contains() from API reference?
     if( polygon.contains( MapPoint(graphic.geometry) ) )

I modify showSearchResultOnMap function on GeocoderComponent.mxml.
Thank you.
Tags (2)
0 Kudos
0 Replies