splitbrain.org

electronic brain surgery since 2001

Accessing the iPhone Location from a Webpage

Option 1: Calling Search Quest

searchquest://URLhttp://

<a href="searchquest://Htools.splitbrain.org/gc/loc.php">Get Location</a>

http://tools.splitbrain.org/gc/loc.php

Option 2: Registering your App

URL

{
    G="1";
    T="Geo Caching";
    B="Apps";
    C=(
    (   
        {
        T="Please choose";
        },
        {   
            T="Nearest caches";
            E="The nearest caches to your location";
            S="http://tools.splitbrain.org/gc/nearest.php";
        },
        {   
            T="Show GC Map";
            E="Display the geocaching.com map";
            S="http://tools.splitbrain.org/gc/map.php";
        },
        {   
            T="Show my data";
            E="Display all your location data";
            S="http://tools.splitbrain.org/gc/loc.php";
        },
        )
    );
}
<?php
header('Location: http://www.geocaching.com/seek/nearest.aspx?lat='.$_REQUEST['lat'].'&lng='.$_REQUEST['lon']);
?>

URL

URL

http://tools.splitbrain.org/gc/

Summary

Comments