baidu-ip-geolocation

Resolve IPv4 address geolocation with Baidu IP responses and coordinate formats.

23|4|Updated May 7, 2026
One-click install
npx skills add https://github.com/qq5855144/GitHubM --skill baidu-ip-geolocation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baidu-ip-geolocation
Source: https://github.com/qq5855144/GitHubM/tree/main/.skills/baidu-ip-geolocation
Command: npx skills add https://github.com/qq5855144/GitHubM --skill baidu-ip-geolocation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill quickly resolves an IPv4 address into a usable geographic location, removing the need to manually interpret IP ownership, regional boundaries, or map coordinates.

Core Features & Use Cases

  • IP-based location lookup: Returns province, city, district, street, administrative code, and coordinate data from a single IP.
  • Flexible coordinate formats: Supports default Baidu Mercator coordinates as well as bd09ll and gcj02 for different mapping stacks.
  • Practical scenarios: Use it for user region detection, city-level attribution, access analytics, personalization logic, or location-enriched logging.

Quick Start

Ask for the location of an IPv4 address and return the province, city, district, adcode, and coordinates.

Frequently Asked Questions about baidu-ip-geolocation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get province, city, and district data from an IPv4 address?

IPv4 geolocation lookup resolves an IP address into province, city, district, street, and administrative code data. It parses Baidu IP location responses to return structured geographic attributes for user location identification and regional validation.

Can I convert IP geolocation results into bd09ll or gcj02 coordinates?

Yes, IP geolocation lookup supports flexible coordinate formats including default Baidu Mercator, bd09ll, and gcj02. This ensures compatibility with different mapping stacks when retrieving coordinates from an IPv4 address.

Does this IPv4 lookup tool support fallback for source IP detection?

IPv4 lookup supports optional source-IP fallback during geolocation parsing. This handles cases where a specific IP is not provided, automatically detecting the source IP for location identification and access workflows.

What is the best way to enrich access logs with city-level attribution data?

The best way to enrich access logs is using IP-based location lookup to append province, city, district, and adcode data. This adds geographic context to analytics, personalization logic, and location-enriched logging workflows.

What administrative boundary details can I extract using Baidu Maps IP geolocation?

Baidu Maps IP geolocation extracts administrative boundaries including province, city, district, street, and adcode. It parses location responses to provide comprehensive regional validation and coordinate retrieval for analytics.

When should I use IP geolocation for user region detection instead of GPS?

IP geolocation is ideal for user region detection when GPS is unavailable or unnecessary, providing city-level attribution and regional validation. It supports personalization logic and access analytics without requiring user permission for device location.