Skip to content

Commit

Permalink
Added Baidu docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Feb 28, 2015
1 parent 77d8f94 commit b4c3f3b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions docs/providers/Baidu.md
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)
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pages:

# Providers
# =========
- ['providers/Baidu.md', 'Providers', 'Baidu']
- ['providers/HERE.md', 'Providers', 'HERE']
- ['providers/ArcGIS.md', 'Providers', 'ArcGIS']
- ['providers/Bing.md', 'Providers', 'Bing']
Expand Down

0 comments on commit b4c3f3b

Please sign in to comment.