Skip to main content

简易高德API命令行工具

Project description

# pypi-gaode-api
pypi tools for gaode api, https://lbs.amap.com/api/webservice/summary

## Install

```shell
> pip install gaode-api-cli

> gaode-api-intersection

Usage: gaode-api-intersection
gaode-api-intersection searchByFile
gaode-api-intersection searchOne
```

## Config Usage
> To config gaode key

### get a gaode key

visit [gaode developer platform](https://lbs.amap.com/dev/key/app) to get a new `Web API key`.

### set gaode key

```shell
> gaode-api-config set-key <key>
```

### get gaode key

```shell
> gaode-api-config get-key

<gaode-key-will-display>
```

## Intersection Usage
> Searching for intersection information from Gaode [Search API](https://lbs.amap.com/api/webservice/guide/api/search/?)

### searchOne

```shell
> gaode-api-intersection searchOne 天目山路

> gaode-api-intersection searchOne 天目山路 hanzhou

> gaode-api-intersection searchOne 天安门 hanzhou
```

### searchByFile
> To search intersections of a batch data.

1. edit `input.txt` in current dir.

```
天目山路高教路口
文一西路高教路口
...
```

2. execute command like below.

```shell
# outputs going into output.csv
> gaode-api-intersection searchByFile input.txt

# outputs going into output1.csv
> gaode-api-intersection searchByFile input.txt output1.csv
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gaode_api_cli-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file gaode_api_cli-0.1.0.tar.gz.

File metadata

  • Download URL: gaode_api_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gaode_api_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5321f13c39590eda845c565500ca7542fb528b2553240ba6778c69853fdeafe7
MD5 ae2c93c35e10eb617b56bc16a60d7671
BLAKE2b-256 8c385e89a9192676691b09cb6fe224f2251b741bb130176454e4375f9b36d864

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page