Переход на UTF8.
[pyrungps.git] / parsegpx.py
index 5299fe0f1da253ea79826b75c0c8ac1247b67ce5..25161c8d761517d5d46122d777c71fe8efb022e3 100644 (file)
@@ -6,7 +6,7 @@ import os
 from lxml import etree
 from urllib2 import unquote
 import pygpx
-import pyosmname
+import pygeocode
 import sqlite3
 import datetime
 
@@ -52,7 +52,7 @@ def write_parsed_to_db(db,gpx,filename):
         print "processing..."
         start = track.start()
         if start:
-          printable = pyosmname.GeoName(start.lat,start.lon).printable
+          printable = pygeocode.GeoName(start.lat,start.lon).printable
           start_time = track.start_time()
           full_duration = track.full_duration().total_seconds()
           distance = track.distance()