forked from ryancox/motionless
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
5 changed files
with
42 additions
and
49 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
build | ||
.pyc | ||
*.pyc |
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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
|
||
motionless is a Python library that takes the pain out of generating [Google Static Map](http://code.google.com/apis/maps/documentation/staticmaps/) URLs. Three map types are supported. Each is illustrated below. For fully worked code see the examples directory for code that parses and visualizes bot GeoRSS feeds and GPX files. | ||
motionless is a Python library that takes the pain out of generating [Google Static Map](http://code.google.com/apis/maps/documentation/staticmaps/) URLs. Three map types are supported. Each is illustrated below. For fully worked code see the examples directory for code that parses and visualizes both GeoRSS feeds and GPX files. | ||
|
||
Code is licensed under Apache 2.0 | ||
|
||
For DecoratedMaps, paths are encoded if [gpolyencode](http://code.google.com/p/py-gpolyencode/) is present. This is useful for keeping URLs with in the 2048 character limit imposed by the service. | ||
|
||
If you have run into bugs, open a github issue. If you have questions, feel free to email me at [email protected] | ||
|
||
-ryan | ||
|
||
-ryan | ||
@ryancox | ||
[www.asciiarmor.com](http://www.asciiarmor.com) | ||
|
||
CenterMap | ||
========= | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,43 @@ | ||
from urllib import quote | ||
import re | ||
|
||
""" | ||
motionless is a library that takes the pain out of generating Google Static Map URLs. | ||
For example code and documentation see: | ||
http://github.com/ryancox/motionless | ||
For details about the GoogleStatic Map API see: | ||
http://code.google.com/apis/maps/documentation/staticmaps/ | ||
If you encounter problems, log an issue on github. If you have questions, drop me an | ||
email at [email protected]. | ||
""" | ||
|
||
""" | ||
Copyright 2010 Ryan A Cox - [email protected] | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
""" | ||
|
||
|
||
|
||
__author__ = "Ryan Cox <[email protected]>" | ||
__version__ = "1.0" | ||
|
||
class Color(object): | ||
COLORS = ['black', 'brown', 'green', 'purple', 'yellow', 'blue', 'gray', 'orange', 'red', 'white'] | ||
pat = re.compile("0x[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8}") | ||
|
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 |
---|---|---|
|
@@ -13,7 +13,6 @@ | |
author = 'Ryan Cox', | ||
author_email = '[email protected]', | ||
description = 'An easy way to generate Google Static Map URLs with Python.', | ||
long_description = open("README.md").read(), | ||
license = 'Apache 2.0 License', | ||
url = 'http://github.com/ryancox/motionless', | ||
keywords = 'google static maps url api georss mapping gpx kml geo gis', | ||
|