NPlace Class Reference

Inherits from NeuraAPIObject : NSObject
Declared in NPlace.h

Overview

An object representing Neura info about a place.

  label

Mandatory. home, work, gym, etc… Check out the full list of available labels here: https://dev.theneura.com/docs/api/labels.

@property (nonnull, nonatomic, readonly) NSString *label

Discussion

Mandatory. home, work, gym, etc… Check out the full list of available labels here: https://dev.theneura.com/docs/api/labels.

Declared In

NPlace.h

  latitude

Optional. Coordinates according to google definitions: https://support.google.com/maps/answer/18539?co=GENIE.Platform%3DAndroid&hl=en&oco=1 The precession (see: http://gis.stackexchange.com/a/8674 ) should be at least 6 points after the decimal point(at least 0.11m). For example, latitude = 24.12345 -> not valid. latitude = 24.123456 -> valid. The latitude must be a number between -90 and 90.

@property (nonatomic, readonly) double latitude

Discussion

Optional. Coordinates according to google definitions: https://support.google.com/maps/answer/18539?co=GENIE.Platform%3DAndroid&hl=en&oco=1 The precession (see: http://gis.stackexchange.com/a/8674 ) should be at least 6 points after the decimal point(at least 0.11m). For example, latitude = 24.12345 -> not valid. latitude = 24.123456 -> valid. The latitude must be a number between -90 and 90.

Declared In

NPlace.h

  longitude

Optional. See latitude. The longitude must be a number between -180 and 180.

@property (nonatomic, readonly) double longitude

Discussion

Optional. See latitude. The longitude must be a number between -180 and 180.

Declared In

NPlace.h

  address

Optional. Address for the place you’re adding. If this is null, the api will set this up according to the latitude and longitude you’ve provided.

@property (nonnull, nonatomic, readonly) NSString *address

Discussion

Optional. Address for the place you’re adding. If this is null, the api will set this up according to the latitude and longitude you’ve provided.

Declared In

NPlace.h

  name

Optional. Name for the place you’re adding. If this is null, the api will set this up according to the latitude and longitude you’ve provided. If the name is empty, and the address is not, the name will be the address.

@property (nonnull, nonatomic, readonly) NSString *name

Discussion

Optional. Name for the place you’re adding. If this is null, the api will set this up according to the latitude and longitude you’ve provided. If the name is empty, and the address is not, the name will be the address.

Declared In

NPlace.h

+ placeWithLabel:

A new instance of a place with a label

+ (nonnull instancetype)placeWithLabel:(nonnull NSString *)label

Parameters

label

home, work, gym, etc. Check out the full list of available labels here: https://dev.theneura.com/docs/api/labels.

Return Value

A new place object instance.

Discussion

A new instance of a place with a label

Declared In

NPlace.h

– initWithLabel:latitude:longitude:address:name:

Init place

- (nonnull instancetype)initWithLabel:(nonnull NSString *)label latitude:(double)latitude longitude:(double)longitude address:(nullable NSString *)address name:(nullable NSString *)name

Parameters

label

Mandatory. home, work, gym, etc… Check out the full list of available labels here: https://dev.theneura.com/docs/api/labels.

latitude

Optional. Coordinates according to google definitions: https://support.google.com/maps/answer/18539?co=GENIE.Platform%3DAndroid&hl=en&oco=1 The precession (see: http://gis.stackexchange.com/a/8674 ) should be at least 6 points after the decimal point(at least 0.11m). For example, latitude = 24.12345 -> not valid. latitude = 24.123456 -> valid. The latitude must be a number between -90 and 90. For unknown pass value lower than -90 and latest user known location will be used.

longitude

Optional. See latitude. The longitude must be a number between -180 and 180. For unknown pass value lower than -180 and latest user known location will be used.

address

Optional. Address for the place you’re adding. If this is null, address info will not be added to the node. It is the developer’s responsibility to supply this meta data about the node.

name

Optional. Name for the place you’re adding. If this is null, name info will not be added to the node. It is the developer’s responsibility to supply this meta data about the node. If the name is empty, and the address is not, the name will be the address.

Return Value

A new subscription object instance.

Discussion

Init place

Declared In

NPlace.h