← 返回 Skills 市场
jakah2551

Location Service

作者 Alessandro Tarantino · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
93
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install location-service
功能描述
Location-based services including geocoding (coordinates to address and address to coordinates), distance calculation, and integration with weather data. Use...
使用说明 (SKILL.md)

Location Service

Overview

This skill provides tools for working with geographic locations. It can convert between coordinates and addresses, calculate distances between points, and retrieve weather information for specific locations using the OpenStreetMap Nominatim service for geocoding and integrating with the existing weather skill.

New: you can now paste a Google Maps URL directly (both desktop and short maps.app.goo.gl links) and the service will automatically extract the coordinates, then proceed with the same pipeline as if you had typed them manually.

Quick Start

Get address from coordinates

Send coordinates in format lat,lon (e.g., 40.7128,-74.0060) to get the corresponding address.

Get coordinates from address

Send an address or place name to get its latitude and longitude coordinates.

Calculate distance

Provide two sets of coordinates to calculate the distance between them.

Get weather for location

Provide coordinates or address to get current weather information.

[NEW] Paste a Google Maps link

Paste any Google Maps URL — the service extracts the coordinates automatically and then behaves exactly like the lat,lon input flow described above.

Supported URL formats:

  • https://www.google.com/maps?q=41.9028,12.4964
  • https://www.google.com/maps/place/Rome/@41.9028,12.4964,15z
  • https://maps.google.com/?ll=41.9028,12.4964
  • https://maps.app.goo.gl/XXXXXXX (short link — resolved automatically)

Geocoding Functions

Reverse Geocoding (Coordinates → Address)

Takes latitude and longitude coordinates and returns a human-readable address.

Forward Geocoding (Address → Coordinates)

Takes an address, place name, or landmark and returns latitude/longitude coordinates.

Distance Calculation

Calculates the distance between two geographic points using the Haversine formula.

Google Maps URL Parsing

Extracts latitude and longitude from a Google Maps URL (including short links resolved via HTTP redirect).

Weather Integration

Leverages the existing weather skill to provide meteorological data for any set of coordinates.

Usage Examples

  • 41.9028,12.4964 → Returns address for Rome, Italy coordinates
  • Colosseum, Rome → Returns coordinates for the Colosseum
  • 41.9028,12.4964 to 40.7128,-74.0060 → Calculates distance between Rome and New York
  • weather for 41.9028,12.4964 → Gets weather for Rome coordinates
  • https://maps.app.goo.gl/XXXXXXXExtracts coordinates from the Google Maps link, then returns address
  • https://www.google.com/maps/place/Colosseum/@41.8902,12.4922,17z → Extracts 41.8902,12.4922 → returns address

Technical Details

  • Uses Nominatim (OpenStreetMap) for geocoding services
  • Supports both decimal degrees and degree/minute/second formats
  • Distance calculations use the Haversine formula for accuracy
  • Integrates with existing weather skill for meteorological data
  • Google Maps URL parsing uses regex on the URL string; short maps.app.goo.gl links are resolved by following the HTTP redirect (no API key required)
  • All services are free and don't require API keys for basic usage

Resources

scripts/

Contains executable Python scripts for geocoding and distance calculations:

  • geocode_reverse.py - Convert coordinates to address
  • geocode_forward.py - Convert address to coordinates
  • distance_calc.py - Calculate distance between two points
  • weather_integration.py - Helper for getting weather data
  • parse_google_maps_url.py - [NEW] Extract lat/lon from a Google Maps URL

references/

Documentation about geocoding services and usage guidelines:

  • nominatim_api.md - Details about the OpenStreetMap Nominatim API
  • examples.md - Common use cases and example workflows

assets/

(Currently unused - reserved for future map templates or location icons)

安全使用建议
Review before installing. It appears intended for normal location lookup tasks, but avoid feeding it untrusted Google Maps short links until URL validation is tightened, and only use location data you are comfortable sharing with external map/geocoding services.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
Core geocoding, reverse geocoding, Google Maps parsing, and distance calculation align with the stated purpose. Weather support is advertised in SKILL.md as retrieving weather information, but scripts/location_service.py currently prints '# Note: Full weather integration would call the weather skill here', so that feature appears incomplete.
Instruction Scope
The instructions are user-directed and disclose automatic parsing/resolution of Google Maps links; no hidden prompt override or goal-redirection instructions were found. The unsafe URL-resolution scope is captured under environment proportionality.
Install Mechanism
The install spec says there is no install spec, while included Python scripts import requests and SKILL.md references helper files not present in the manifest. This is a dependency/documentation gap, not evidence of hidden installation.
Credentials
Network access to Nominatim and Google Maps is disclosed and proportionate, but scripts/location_service.py validates Google Maps URLs with a prefix regex and then opens the supplied short-link URL, which is broader than the stated maps.app.goo.gl-only resolution.
Persistence & Privilege
No persistence, background workers, credential use, token handling, account mutation, or privileged local access are shown in the provided source. The provided capability signal for sensitive credentials is not corroborated by the registry requirements or code.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install location-service
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /location-service 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the location-service skill. - Supports geocoding (coordinates ↔ address), distance calculation, and weather integration. - New: Paste any Google Maps URL (including short links) to automatically extract coordinates and proceed with location processing. - Compatible with OpenStreetMap Nominatim for all geocoding operations. - Distance calculation uses the Haversine formula. - Seamlessly integrates with the existing weather skill for location-based forecasts.
元数据
Slug location-service
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Location Service 是什么?

Location-based services including geocoding (coordinates to address and address to coordinates), distance calculation, and integration with weather data. Use... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 93 次。

如何安装 Location Service?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install location-service」即可一键安装,无需额外配置。

Location Service 是免费的吗?

是的,Location Service 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Location Service 支持哪些平台?

Location Service 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Location Service?

由 Alessandro Tarantino(@jakah2551)开发并维护,当前版本 v1.0.0。

💬 留言讨论