title | description | ms.author |
---|---|---|
Geocircle Class | Microsoft Docs |
Describes the Geocircle class for Android iOS and provides the class' constructors, properties, and additional references. |
pablocan |
[!INCLUDE bing-maps-sdk-for-android-iOS-retirement]
Describes a geographic circle with a center point and radius.
Android
public class Geocircle extends Geoshape
iOS
@interface MSGeocircle : MSGeoshape
See also: MSGeoposition
Android
Geocircle(Geoposition center, double radius) Geocircle(Geoposition center, double radius, AltitudeReferenceSystem altitudeReferenceSystem)
iOS
+ (instancetype)geocircleWithCenter:(MSGeoposition *)center radius:(CLLocationDistance)radius + (instancetype)geocircleWithCenter:(MSGeoposition *)center radius:(CLLocationDistance)radius altitudeReference:(MSMapAltitudeReferenceSystem)altitudeReferenceSystem
The center point of a geographical circle.
Android
Geoposition getCenter()
iOS
@property (nonatomic, readonly) MSGeoposition *center
Radius of a geographical circle in meters.
Android
double getRadius()
iOS
@property (nonatomic, readonly) CLLocationDistance radius
Gets the altitude reference system used by the GeoboundingBox.
Android
AltitudeReferenceSystem getAltitudeReferenceSystem()
iOS
@property (nonatomic, readonly) MSMapAltitudeReferenceSystem altitudeReferenceSystem
See also: AltitudeReferenceSystem