bloggie blog

Technology

How to send a street address to your iPhone

10 August 2009

This is how I get street addresses from my home computer to my iPhone with ease.

The tricky part for most users is this one requirement: Have a server somewhere that runs PHP and that can send you email. If you have access to such a server, here’s an easy solution I call Mappie Map. It’s kind of like iPhoneSender, but you don’t have to type in an email address every time you use it.

1. Create a file in the html root directory of your server and name it iphone.php.

2. Edit iphone.php with this text (replacing YOUREMAIL with your actual email):

< ?php
function mystrip($s) {
	$s = trim($s);
	$s = str_replace("\xA0",' ',$s);
	$s = preg_replace('/\s+/','+',$s);
	return $s;
}
$to = "YOUREMAIL";
$address = $_REQUEST["address"];
echo $address . "<br />";
$subject = "Map: " . $address;
$address = mystrip($address);
$message = "http://maps.google.com/?q=" . $address;
$from = "Mappie Map YOUREMAIL";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo $address;
?>

3. Drag this link [Mappie Map] to your Safari bookmark bar.

4. Right-click the Mappie Map link in your Safari bookmark bar and select “Edit Address.” Replace YOURSERVER with the URL of your server root, such as www.FirstnameLastname.com.

5. You’re good to go! Click on the Mappie Map bookmark link after highlighting an address in your web page, a new window pops up showing the sent info which you must close manually, and you’ll soon get a message from Mappie Map. Just tap on its contents, and the address will now appear in your iPhone’s Maps app without you having to type it in.

I find this real real handy. Leave a comment if you find it handy, too!

Posted August 10, 2009 at 11:33 pm

without comments

Posted in Technology

Tagged with ,

Leave a Reply