Appsee Support

How Does Appsee Capture Location?

If your application captures Geo-Location information, you can embed the longitude and latitude parameters into a session. Please see integration instructions for iOS / Android.

By doing so, you'll be able to run in-house geographical analytics.

You can also overwrite the "Location Description" value of each session by using the setLocationDescription API call as Appsee parses the IP address of the device by an IP2LOCATION service to set the location description.(i.e. "shopping district" or "residential area").

 

iOS:

+(void)setLocation:(double)latitude longitude:(double)longitude
   horizontalAccuracy:(float)horizontalAccuracy 
   verticalAccuracy:(float)verticalAccuracy
Sets the current user location.

Parameters:
latitude : Latitude in degrees.
longitude : Longitude in degrees.
horizontalAccuracy : Horizontal accuracy.
verticalAccuracy : Vertical accuracy.


+(void)setLocationDescription:(NSString*)description

Sets the current user location's description.

Parameters:
description: A custom string representing the user's location.

Code Example:
[Appsee setUserID:@"1234"];
 
Android:
 
[Appsee setLocationDescription:@"Office"];

setLocation(double latitude, double longitude,
float horizontalAccuracy, float verticalAccuracy)

Sets the current user location.

 

Parameters:

latitude : Latitude in degrees.
longitude : Longitude in degrees.
horizontalAccuracy : Horizontal accuracy.
verticalAccuracy : Vertical accuracy.


setLocationDescription(String description)

 
Sets the current user location's description.
 

Parameters:

description: A custom string representing the user's location.
 
Code Example:
Appsee.setUserId("1234");

Appsee.setLocationDescription("Office");

Did you find this article helpful?