Skip to content

Commit

Permalink
licensing and setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancox committed Aug 4, 2010
1 parent 8949a14 commit 6c610ac
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
build
.pyc
*.pyc
7 changes: 4 additions & 3 deletions README.md
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
=========
Expand Down
44 changes: 0 additions & 44 deletions examples/munich.py

This file was deleted.

37 changes: 37 additions & 0 deletions motionless.py
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}")
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 6c610ac

Please sign in to comment.