Location Service
/install location-service
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.4964https://www.google.com/maps/place/Rome/@41.9028,12.4964,15zhttps://maps.google.com/?ll=41.9028,12.4964https://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 coordinatesColosseum, Rome→ Returns coordinates for the Colosseum41.9028,12.4964 to 40.7128,-74.0060→ Calculates distance between Rome and New Yorkweather for 41.9028,12.4964→ Gets weather for Rome coordinateshttps://maps.app.goo.gl/XXXXXXX→ Extracts coordinates from the Google Maps link, then returns addresshttps://www.google.com/maps/place/Colosseum/@41.8902,12.4922,17z→ Extracts41.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.gllinks 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 addressgeocode_forward.py- Convert address to coordinatesdistance_calc.py- Calculate distance between two pointsweather_integration.py- Helper for getting weather dataparse_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)
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install location-service - After installation, invoke the skill by name or use
/location-service - Provide required inputs per the skill's parameter spec and get structured output
What is Location Service?
Location-based services including geocoding (coordinates to address and address to coordinates), distance calculation, and integration with weather data. Use... It is an AI Agent Skill for Claude Code / OpenClaw, with 93 downloads so far.
How do I install Location Service?
Run "/install location-service" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Location Service free?
Yes, Location Service is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Location Service support?
Location Service is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Location Service?
It is built and maintained by Alessandro Tarantino (@jakah2551); the current version is v1.0.0.