简体   繁体   中英

How to check lat/lon in in drawn Poligon area or not

I am working on a project where I have draw a Poligon using

PolygonOptions rectOptions = new PolygonOptions();
    rectOptions.addAll(lat_longList);
    rectOptions.strokeColor(Color.BLACK);
    rectOptions.strokeWidth(5);
    rectOptions.fillColor(Color.LTGRAY);
    poliPolygon  = map.addPolygon(rectOptions);

But now I want to check another lat/lon (line 22.00,88.011) falls in that polygon area or not. if that lat/lon is in that are then load a marker.

Please help on this issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM