Google-Embed
Google-Embed is a Pelican plugin providing restucturedText directives to allow easy embedding of Google+ (for example a public post or album) and Google Maps.
Live examples can also be viewed from a Pelican-built website.
Features
Embed Google+ posts within a page or blog post easily, simply by specifying the URL of the post.
Google Maps can also be embedded by specifying:
A place
A search term
Directions with optional waypoints
Furthermore, a static image from Google Maps or Google Streetview can also be embedded.
Installation
Google-Embed can be installed using pip
$ pip install google-embed
or manually from the source code
$ python setup.py install
Once installed, simply add it to your pelicanconf.py configuration file:
PLUGINS = [
# ...
'google_embed'
]
Usage
Google+
To embed a public Google+ post, you just need the permalink to the post:
.. gplus:: PERMALINK
Embed Google Maps
To embed a Google Map object:
.. gmaps:: location
:mode: place
where location in this case is a name of a specific place. Note that :mode: is a required option, and can take the value place or search. If in search mode, the value of location can be a more generic phrase, such as Mexican Restraunts near Fake St - the result will be displayed on the map with markers.
Other options include:
:align: - left, right, or center
:maptype: - roadmap or satelite
:width:
:height:
Embed Google Map Directions
To embed Google Map directions:
.. directions::
:mode: walking
:origin: Tower of London
:destination: Westminster Abbey
Required options:
:mode: - driving, walking, bicycling, transit, flying
:origin:
:destination:
Other options include:
:align: - left, right, or center
:maptype: - roadmap or satelite
:waypoints: - points to stop along the way. Should be entered like Berlin+Germany|Paris+France
:width:
:height:
Embed Google Map as an Image
.. static-map:: The queens larder
Other options include:
:align: - left, right, or center
:maptype: - roadmap, satelite, hybrid, terrain
:markers: - places markers on the map
:zoom: - default is 12
:width:
:height:
When using markers, styles come before locations. For numerous markers of the same style,
.. static-map:: The queens larder
:markers: color:blue The+British+Museum Lamb+Bar
For markers of different styles, these should be separated with a &:
.. static-map:: The queens larder
:markers: color:blue label:A The+British+Museum & color:red label:B Lamb+Bar
Note that marker locations use + to seprate words, not spaces.
Embed Streetview as an Image
.. streetview:: Paragon, Orchard Rd
Other options include:
:align: - left, right, or center
:width:
:height:
Release files for google_embed 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| google_embed-0.1.0.tar.gz | 18.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| google_embed-0.1.0-py27-none-any.whl | Python 2.7 | none | any | Details |
Total release size: 25.7 kB
Release files / google_embed-0.1.0.tar.gz
| Download URL | google_embed-0.1.0.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f13a130d3a4e5e54a86a979959651e7485f7ae406b02cfce50e6a56ee3561c09
|
|
BLAKE2b-256 checksum How to use checksums |
1fad4761e8607831c456bb4114220bce84b1944d1ada95256a593fb210f7a867
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / google_embed-0.1.0-py27-none-any.whl
| Download URL | google_embed-0.1.0-py27-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 2.7 |
|
SHA-256 checksum How to use checksums |
59b7c80612960cccd9f597f17cd4ce2092f9ede4753bbbed42e56d1f0789af10
|
|
BLAKE2b-256 checksum How to use checksums |
977da39211da7163b25f2a270252ad8a837deb789c0dcc12aab4e6da41c1ca72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |