Location Helper Icon

Using Location Helper

Below is an overview of what you can do with Location Helper. Commands that use Google Maps API should do so within the conditions of use as defined by Google. Full terms and conditions here: http://code.google.com/apis/maps/terms.html

Core Location Commands

get location coordinates

Returns the computer’s current geographic coordinates (if available)

get location altitude

Returns the computer’s current altitude (if available)

get location record

Returns a record with all available location information

get location string

Returns a string with all available location information

get distance from coordinates

Get the distance in metres from the current location to any geographic coordinate

tell application "Location Helper"

-- --------------------------------

-- These commands use 'Core Location'

-- --------------------------------

-- returns a list of the latitude and longitude of the current location

set clocation_coords to get location coordinates

-- returns the current altitude in metres

set clocation_coords to get location altitude

-- the distance in meters from a given lat and long

set the_distance to get distance from coordinates {51.5, -0.1167}

-- description of the current location details as a record

set clocation_record to get location record

-- description of the current location details as a string

set clocation_description to get location string

end tell

Google Maps / Core Location Commands

reverse geocode location

Returns the Google Maps API information for the current location or, optionally, any location defined by geographic coordinates

geocode address

Returns the Google Maps API information for a location supplied as a string

tell application "Location Helper"

---------------------------

-- These commands use Core Location and the Google Maps v3 API

-- Full terms and conditions here: http://code.google.com/apis/maps/terms.html

-- --------------------------------

-- Fetch the Google Map API information for the current location

set current_location to reverse geocode location

-- Fetch the Google Map API information for a given set of geographic coordinates

set location_addresses to ¬

reverse geocode location using coordinates {51.4457622, -0.0629262}

-- Fetch the Google Map API information for an address string

set address_info to ¬

geocode address "1 Infinity Loop, Cupertino, California, USA"

end tell

JSON Commands

Location Helper also supports all the JSON handling commands of JSON Helper. You can see examples of all of these here.