new HelperTypesFactory()
Types factory
Methods
-
<static> createMediaFile(value, endpoint)
-
Create a MediaFile instance
Parameters:
Name Type Description value
string | Object A media file string or object
endpoint
string REST API endpoint base
Returns:
A MediaFile instance
-
<static> createPoint(params)
-
Create a GeoPoint instance
Parameters:
Name Type Description params
Object | apy.helpers.GeoPoint An object representing a Point (x,y)
Returns:
A GeoPoint instance
- Type
- apy.helpers.GeoPoint