Methods
directionsToPhone(venueId, originLocationId, destinationLocationId, countryCode, phoneNumber) → {Promise}
Send text message to phone containing link to web page with directions from one location to another within a venue.
This is a paid addon that must be enabled for your solution. Contact your MapsIndoors sales representative for more info.
Parameters:
Name | Type | Description |
---|---|---|
venueId |
String | The id of the venue |
originLocationId |
String | Id of the location to start directions from. |
destinationLocationId |
String | Id of the destination location. |
countryCode |
String | Country code of phone number to send text message to, eg. "+45". |
phoneNumber |
String | Phone number to send text message to, eg. "12345678". |
Success of request, resolves or rejects.
Promise
Example
mapsindoors.ShareService.directionsToPhone('586ca9f0bc1f5702406442b5', '586ce40fbc1f571794b9e83d', '586ce411bc1f571794b9e858', '+45', '12345678')
.then(() => { ...everything ok... })
.catch((errorMessage) => { ...handle error here... })