nearby-places-skill

Search for nearby places like restaurants, cafes, stores, and services using Google Places API. Find places by type and location.

100 stars

Best use case

nearby-places-skill is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Search for nearby places like restaurants, cafes, stores, and services using Google Places API. Find places by type and location.

Teams using nearby-places-skill should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/nearby-places-skill/SKILL.md --create-dirs "https://raw.githubusercontent.com/trohitg/MachinaOS/main/server/skills/travel_agent/nearby-places-skill/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/nearby-places-skill/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How nearby-places-skill Compares

Feature / Agentnearby-places-skillStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Search for nearby places like restaurants, cafes, stores, and services using Google Places API. Find places by type and location.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Nearby Places Tool

Search for places near a location using Google Places API.

## How It Works

This skill provides instructions for the **Show Nearby Places** (gmaps_nearby_places) tool node. Connect the **Show Nearby Places** node to Zeenie's `input-tools` handle to enable place search.

## show_nearby_places Tool

Search for places near GPS coordinates.

### Schema Fields

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| lat | float | Yes | Center latitude for search |
| lng | float | Yes | Center longitude for search |
| radius | int | No | Search radius in meters (default: 500, max: 50000) |
| type | string | No | Place type to search for (default: "restaurant") |
| keyword | string | No | Keyword to filter results |

### Place Types

**Food & Drink:**
- `restaurant` - Restaurants
- `cafe` - Coffee shops
- `bar` - Bars and pubs
- `bakery` - Bakeries
- `meal_takeaway` - Takeout restaurants

**Shopping:**
- `store` - General stores
- `supermarket` - Grocery stores
- `shopping_mall` - Shopping centers
- `clothing_store` - Clothing shops
- `convenience_store` - Convenience stores

**Services:**
- `bank` - Banks
- `atm` - ATMs
- `gas_station` - Gas/petrol stations
- `pharmacy` - Pharmacies
- `post_office` - Post offices

**Health:**
- `hospital` - Hospitals
- `doctor` - Doctor's offices
- `dentist` - Dental clinics

**Transport:**
- `bus_station` - Bus stations
- `train_station` - Train stations
- `airport` - Airports
- `taxi_stand` - Taxi stands
- `parking` - Parking lots

**Entertainment:**
- `movie_theater` - Cinemas
- `gym` - Fitness centers
- `park` - Parks
- `museum` - Museums
- `zoo` - Zoos

**Accommodation:**
- `hotel` - Hotels
- `lodging` - All lodging types

### Examples

**Find nearby restaurants:**
```json
{
  "lat": 40.7484,
  "lng": -73.9857,
  "radius": 500,
  "type": "restaurant"
}
```

**Find coffee shops:**
```json
{
  "lat": 37.7749,
  "lng": -122.4194,
  "type": "cafe",
  "radius": 1000
}
```

**Find specific chain:**
```json
{
  "lat": 37.7749,
  "lng": -122.4194,
  "type": "cafe",
  "keyword": "starbucks"
}
```

**Find gas stations:**
```json
{
  "lat": 34.0522,
  "lng": -118.2437,
  "type": "gas_station",
  "radius": 2000
}
```

**Find hotels:**
```json
{
  "lat": 51.5074,
  "lng": -0.1278,
  "type": "hotel",
  "radius": 1000
}
```

### Response Format

```json
{
  "success": true,
  "type": "restaurant",
  "search_parameters": {
    "location": {"lat": 40.7484, "lng": -73.9857},
    "radius": 500,
    "type": "restaurant"
  },
  "results": [
    {
      "name": "Example Restaurant",
      "vicinity": "123 Main St, New York",
      "rating": 4.5,
      "user_ratings_total": 150,
      "price_level": 2,
      "geometry": {
        "location": {"lat": 40.7485, "lng": -73.9860}
      },
      "types": ["restaurant", "food", "establishment"],
      "opening_hours": {"open_now": true}
    }
  ],
  "total_results": 10,
  "status": "OK"
}
```

### Response Fields

| Field | Description |
|-------|-------------|
| name | Place name |
| vicinity | Address or location description |
| rating | Average rating (1-5) |
| user_ratings_total | Number of reviews |
| price_level | Price level (0-4, 0=free, 4=very expensive) |
| geometry.location | Place coordinates |
| types | Place type categories |
| opening_hours.open_now | Whether currently open |

### Error Response

```json
{
  "error": "lat and lng are required for nearby places search"
}
```

## Price Level Guide

| Level | Meaning |
|-------|---------|
| 0 | Free |
| 1 | Inexpensive ($) |
| 2 | Moderate ($$) |
| 3 | Expensive ($$$) |
| 4 | Very Expensive ($$$$) |

## Common Workflows

### Find places near an address

1. Use `geocoding` tool to convert address to coordinates
2. Use `nearby_places` with the lat/lng from step 1

### Find best-rated places

1. Search with appropriate type and radius
2. Sort results by rating in response
3. Filter by minimum rating threshold

### Find open places now

1. Search with desired type
2. Check `opening_hours.open_now` in results

## Radius Guidelines

| Radius | Use Case |
|--------|----------|
| 100-500m | Walking distance |
| 500-1000m | Short walk |
| 1000-2000m | 5-10 min walk |
| 2000-5000m | Driving distance |
| 5000-50000m | City-wide search |

## Tips

1. **Use specific types**: "cafe" not "coffee"
2. **Add keywords**: Filter by chain name or cuisine
3. **Adjust radius**: Start small, expand if needed
4. **Check ratings**: Higher ratings usually mean better quality
5. **Verify open_now**: Important for time-sensitive searches

## Setup Requirements

1. Connect the **Show Nearby Places** (gmaps_nearby_places) node to Zeenie's `input-tools` handle
2. Google Maps API key must be configured in Credentials
3. Places API must be enabled in Google Cloud Console

Related Skills

serper-search-skill

100
from trohitg/MachinaOS

Search the web using Serper API for Google-powered search results including web, news, images, and places.

proxy-config-skill

100
from trohitg/MachinaOS

Configure residential proxy providers and make proxied HTTP requests with geo-targeting.

perplexity-search-skill

100
from trohitg/MachinaOS

Search the web using Perplexity Sonar AI for synthesized answers with citations, related questions, and optional images.

http-request-skill

100
from trohitg/MachinaOS

Make HTTP requests to external APIs and web services. Supports GET, POST, PUT, DELETE, PATCH methods with headers and JSON body.

duckduckgo-search-skill

100
from trohitg/MachinaOS

Search the web using DuckDuckGo for free, privacy-focused results with no API key required.

crawlee-scraper-skill

100
from trohitg/MachinaOS

Read and extract content from any web page URL.

browser-skill

100
from trohitg/MachinaOS

Interactive browser automation - navigate, click, type, fill forms, take screenshots, get accessibility snapshots. Supports system Chrome/Edge via auto-detection.

brave-search-skill

100
from trohitg/MachinaOS

Search the web using Brave Search API for privacy-focused, independent search results with no tracking.

apify-skill

100
from trohitg/MachinaOS

Run web scrapers and extract data from websites and social media platforms using Apify actors. Supports Instagram, TikTok, Twitter/X, LinkedIn, Facebook, YouTube, Google Search, and general web crawling.

shell-skill

100
from trohitg/MachinaOS

Execute short-lived shell commands in a sandboxed environment. No PATH access -- use process_manager for npm/python/node commands.

process-manager-skill

100
from trohitg/MachinaOS

Start, stop, and manage long-running processes with full system PATH. Use for npm, python, node, dev servers, watchers, build tools. Destructive file commands blocked.

powershell-skill

100
from trohitg/MachinaOS

Windows PowerShell commands and patterns for process management, file operations, and system administration.