AgentSkillsCN

location-skill

获取 Android 设备的 GPS 位置——包括纬度、经度、精度、速度,以及定位服务提供商的相关信息。

SKILL.md
--- frontmatter
name: location-skill
description: Get Android device GPS location - latitude, longitude, accuracy, speed, and provider information.
allowed-tools: location
metadata:
  author: machina
  version: "1.0"
  category: android
  icon: "📍"
  color: "#EF4444"

Location Tool

Get GPS location from Android device.

How It Works

This skill provides instructions for the Location tool node. Connect the Location node to Zeenie's input-tools handle to enable location tracking.

location Tool

Get current GPS location from the Android device.

Schema Fields

FieldTypeRequiredDescription
actionstringYes"status" - Get current location

Actions

ActionDescription
statusGet current GPS coordinates and location info

Example

Get current location:

json
{
  "action": "status"
}

Response Format

json
{
  "success": true,
  "service": "location",
  "action": "status",
  "data": {
    "latitude": 37.7749,
    "longitude": -122.4194,
    "altitude": 10.5,
    "accuracy": 15.0,
    "speed": 0.0,
    "bearing": 180.0,
    "provider": "gps",
    "timestamp": "2025-01-30T12:00:00Z"
  }
}

Response Fields

FieldTypeDescription
latitudefloatLatitude in degrees
longitudefloatLongitude in degrees
altitudefloatAltitude in meters (if available)
accuracyfloatHorizontal accuracy in meters
speedfloatSpeed in m/s (if moving)
bearingfloatDirection of travel in degrees
providerstring"gps", "network", "fused"
timestampstringWhen location was obtained

Error Response

json
{
  "error": "Location not available - GPS may be disabled",
  "service": "location",
  "action": "status"
}

Accuracy Guide

Accuracy (m)QualityTypical Source
< 5ExcellentGPS with clear sky
5-15GoodGPS
15-50FairNetwork/WiFi
50-100PoorCell tower
> 100Very PoorCoarse location

Provider Types

ProviderDescription
gpsGPS satellites (most accurate outdoors)
networkWiFi/Cell towers
fusedCombined sources (Android Fused Location)

Use Cases

Use CaseDescription
Location trackingGet device position
GeofencingCheck if in specific area
Speed monitoringTrack movement speed
NavigationGet coordinates for routing

Common Workflows

Share location via WhatsApp

  1. Get location from device
  2. Use whatsapp_send with message_type="location"
  3. Pass latitude/longitude from location result

Location-based reminder

  1. Get current location
  2. Calculate distance to target
  3. Trigger reminder when near target

Track movement

  1. Periodically get location
  2. Store coordinates
  3. Calculate distance traveled

Integration with Other Tools

Send location to contact

code
1. location.status -> get lat/lng
2. whatsapp_send with:
   - message_type: "location"
   - latitude: <from location>
   - longitude: <from location>

Find nearby places

code
1. location.status -> get lat/lng
2. nearby_places with:
   - lat: <from location>
   - lng: <from location>
   - type: "restaurant"

Setup Requirements

  1. Connect the Location node to Zeenie's input-tools handle
  2. Android device must be paired
  3. Location permission must be granted
  4. GPS/Location services must be enabled on device