-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77d8f94
commit b4c3f3b
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Baidu | ||
|
||
Baidu Maps Geocoding API is a free open the API, the default quota | ||
one million times / day. | ||
|
||
## Python Example | ||
|
||
```python | ||
>>> import geocoder | ||
>>> g = geocoder.baidu('中国') | ||
>>> g.latlng | ||
[37.550339474591, 104.11412925348] | ||
... | ||
``` | ||
|
||
## Geocoder Attributes | ||
|
||
- encoding | ||
- lat | ||
- lng | ||
- location | ||
- ok | ||
- provider | ||
- quality | ||
- status | ||
|
||
## Parameters | ||
|
||
* :param location: Your search location you want geocoded. | ||
* :param key: Baidu API key. | ||
* :param referer: Baidu API referer website. | ||
|
||
## References | ||
|
||
- [API Reference](http://developer.baidu.com/map/index.php?title=webapi/guide/webservice-geocoding) | ||
- [Get Baidu key](http://lbsyun.baidu.com/apiconsole/key) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters