-
Notifications
You must be signed in to change notification settings - Fork 24
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
4158e0b
commit 578d570
Showing
2 changed files
with
6 additions
and
4 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 |
---|---|---|
|
@@ -42,6 +42,7 @@ | |
from warnings import warn | ||
from datetime import datetime | ||
from collections import OrderedDict | ||
from urllib.request import urlretrieve | ||
|
||
__title__ = "pyroutelib3" | ||
__description__ = "Library for simple routing on OSM data" | ||
|
@@ -50,7 +51,7 @@ | |
__copyright__ = "Copyright 2007, Oliver White; Modifications: Copyright 2017-2018, Mikolaj Kuranowski" | ||
__credits__ = ["Oliver White", "Mikolaj Kuranowski"] | ||
__license__ = "GPL v3" | ||
__version__ = "1.0" | ||
__version__ = "1.0post1" | ||
__maintainer__ = "Mikolaj Kuranowski" | ||
__email__ = "[email protected]" | ||
|
||
|
@@ -213,7 +214,8 @@ def getArea(self, lat, lon): | |
downloadedSecondsAgo = math.inf | ||
|
||
if downloadedSecondsAgo >= self.expire_data: | ||
urlretrieve("https://api.openstreetmap.org/api/0.6/map?bbox={0},{1},{2},{3}".format(_tileBoundary(x, y, 15)), filename) | ||
left, bottom, right, top = _tileBoundary(x, y, 15) | ||
urlretrieve("https://api.openstreetmap.org/api/0.6/map?bbox={0},{1},{2},{3}".format(left, bottom, right, top), filename) | ||
|
||
self.loadOsm(filename) | ||
|
||
|
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 |
---|---|---|
|
@@ -7,15 +7,15 @@ | |
name = "pyroutelib3", | ||
py_modules = ["pyroutelib3"], | ||
license = "GPL v3", | ||
version = "1.0", | ||
version = "1.0post1", | ||
description = "Library for simple routing on OSM data", | ||
long_description = readme, | ||
long_description_content_type = "text/markdown", | ||
author = "Oliver White", | ||
maintainer = "Mikolaj Kuranowski", | ||
maintainer_email = "[email protected]", | ||
url = "https://github.com/MKuranowski/pyroutelib3", | ||
download_url = "https://github.com/MKuranowski/pyroutelib3/archive/1.0.tar.gz", | ||
download_url = "https://github.com/MKuranowski/pyroutelib3/archive/1.0.post1.tar.gz", | ||
keywords = "osm routing pyroutelib", | ||
classifiers = [], | ||
install_requires = ["osmapi", "python-dateutil"] | ||
|