Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To receive incoming SMSes, you would normally need an SMS gateway which supports incoming SMS. </p> <p><a href="http://www.clickatell.com/products/sms%5Fgateway.php" rel="nofollow noreferrer">Clickatell</a> is a popular SMS gateway. It works in 200+ countries, and ironically it is being advertised right next to the text box I'm writing this answer!</p> <p>For incoming SMSes, you would have to expose an interface from your server through: HTTP, SMPP, SOAP or FTP. For example if you use the HTTP GET and you provide this URL to Clickatell: <code>http://www.yourdomain.com/incoming-sms/</code>, then Clickatell will send you this type of GET request with every incoming SMS:</p> <pre><code>https://www.yourdomain.com/incoming-sms/? api_id=12345&amp; from=279991235642&amp; to=27123456789&amp; timestamp=2010-02-1921:29:50&amp; text=Here%20is%20the%20messagetext&amp; charset=ISO-8859-1&amp; moMsgId=b2aee337abd962489b123fda9c3480fa </code></pre> <p>As soon as you receive the address within the SMS body, you would have to get the latitude/longitude coordinates through the <a href="http://code.google.com/apis/maps/documentation/geocoding/index.html" rel="nofollow noreferrer">Google Maps API Server-side Geocoding Service</a>. If you are using php, this would look something like this:</p> <pre><code>$url = 'http://maps.google.com/maps/geo?q=Oxford+Street,+London,+UK&amp;output=csv&amp;sensor=false'; $data = @file_get_contents($url); $result = explode(",", $data); echo $result[0]; // status code echo $result[1]; // accuracy echo $result[2]; // latitude echo $result[3]; // longitude </code></pre> <p>Once you get the latitude and longitude, you can store them in a database for later plotting on Google Maps. </p> <p>Note that the server-side geocoding service may only be used in conjunction with displaying results on a Google map; geocoding results without displaying them on a map is prohibited by the <a href="http://code.google.com/apis/maps/terms.html#section_10_12" rel="nofollow noreferrer">Google Maps API Terms of Service License Restrictions</a>.</p> <hr> <p>If you want to use the Clickatell SMS gateway to send a response back via SMS, their API offers a choice of outgoing connection options via: HTTP/S, SMPP, SMTP, FTP, XML, SOAP, COM Object.</p> <p>The HTTP/S method is as simple as this: <code>http://api.clickatell.com/http/sendmsg?to=NUMBER&amp;msg=Message+Body+Here</code> (<a href="http://support.clickatell.com/guides/clickatell/api_guide.php" rel="nofollow noreferrer">Clickatell API Guide</a>).</p> <p>The SMTP method consists of sending a plain-text e-mail to: <code>sms@messaging.clickatell.com</code>, with the following body:</p> <pre><code>user: xxxxx password: xxxxx api_id: xxxxx to: 448311234567 text: Meet me at home </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload