public final class

LocationFactory

extends Object
java.lang.Object
   ↳ com.steerpath.sdk.location.LocationFactory

Class Overview

Create new Location-objects with LocationFactory.

Summary

Public Methods
static Location create(String provider)
Create new Location Object
static Location create(String provider, double lat, double lon, String buildingRef, int floorIndex)
Create new Location object.
static Location create(MetaFeature feature)
Extract latitude and longitude from MetaFeature and create new Location object.
static Location create()
Create new Location Object with "custom" provider
static Location createFakeLocation(LatLng point, String buildingRef, int floor)
Create new Location object with FusedLocationProviderApi.FAKE_LOCATION_PROVIDER as provider.
static Location createFakeLocation(double lat, double lon, String buildingRef, int floorIndex)
Create new Location object with FusedLocationProviderApi.FAKE_LOCATION_PROVIDER as provider
static Location createFakeLocation(SteerpathMap map, LatLng point)
Create new Location object with FusedLocationProviderApi.FAKE_LOCATION_PROVIDER as provider.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Location create (String provider)

Create new Location Object

Parameters
provider name of the provider can be arbitrary. For example "myProvider".

public static Location create (String provider, double lat, double lon, String buildingRef, int floorIndex)

Create new Location object.

public static Location create (MetaFeature feature)

Extract latitude and longitude from MetaFeature and create new Location object.

public static Location create ()

Create new Location Object with "custom" provider

public static Location createFakeLocation (LatLng point, String buildingRef, int floor)

Create new Location object with FusedLocationProviderApi.FAKE_LOCATION_PROVIDER as provider.

public static Location createFakeLocation (double lat, double lon, String buildingRef, int floorIndex)

Create new Location object with FusedLocationProviderApi.FAKE_LOCATION_PROVIDER as provider

public static Location createFakeLocation (SteerpathMap map, LatLng point)

Create new Location object with FusedLocationProviderApi.FAKE_LOCATION_PROVIDER as provider.