Menu

Expand
Rate this page:

twilio/location

Twilio/location type contains a location pin and an optional label, which can be used to enhance delivery notifications or connect recipients to physical experiences you offer.

Location templates are only available once the end user is in a 24 hr session. They can not initiate a business initiated session.

Location templates are not supported for approval on WhatsApp and can't be submitted for approval.

Supported Channels

WhatsApp

Message Preview

Content API - Location sample

Data Parameters

longitude:

Type - numbers

Required - yes

Variable Support - no

Description - The longitude value of the location pin you want to send.

Value must be between [-90.0, +90.0]

latitude:

Type - numbers

Required - yes

Variable Support - no

Description - The latitude value of the location pin you want to send.

Value must be between [-180.0, +180.0]

label:

Type - string

Required - no

Variable Support - yes

Description - Label to be displayed to the end user alongside the location pin.

Loading Code Sample...
        
        

        Create Location Template

        Rate this page:

        Need some help?

        We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.

        Loading Code Sample...
              
              
              

              Thank you for your feedback!

              Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

              Sending your feedback...
              🎉 Thank you for your feedback!
              Something went wrong. Please try again.

              Thanks for your feedback!

              thanks-feedback-gif