Find out what type of area you are in MKMapView

Is there a way to determine what type of area you are in MKMapView? That is, if the center of the map is in the ocean, we can tell the user: the center of the map is above the ocean, or if the map is concentrated above the green zone: the center of the map is above the park zone ...

The only way I can do this is to take a screenshot of the visible screen and analyze the color of each bit using some method, such as: iOS - determine the color of the pixel?

However, I would be interested to know if there is an easier way that everyone can think of!

EDIT

To make what I’m looking for more clear, I’m basically looking for a way to turn the map section into a higher level for playing with different areas defined by map areas ...

+4
source share
2 answers

A CLPlacemark has a couple of properties: inlandWater and ocean , which tell you when the tag is in the water. I think you can get the tag from the geocoder.

It also has areasOfInterest , which will give you parks and attractions.

+2
source

There is no reliable way, BUT CLGeocoder can cancel the geocoding of coordinates to an address, and this will give you the following:

0/0 = ...., ocean 51/10 = ..., Germany -90/10 = ....., usa.

etc.

0
source

All Articles