File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def compute_database_date(conn, prefix):
6161 return None
6262
6363 LOG .debug ("Using way id %d for timestamp lookup" , osmid )
64- # Get the node from the API to find the timestamp when it was created.
64+ # Get the way from the API to find the timestamp when it was created.
6565 url = 'https://www.openstreetmap.org/api/0.6/way/{}/1' .format (osmid )
6666 headers = {"User-Agent" : "osm2pgsql-update" ,
6767 "Accept" : "application/json" }
@@ -70,7 +70,7 @@ def compute_database_date(conn, prefix):
7070
7171 if not data .get ('elements' ) or not 'timestamp' in data ['elements' ][0 ]:
7272 LOG .fatal ("The way data downloaded from the API does not contain valid data.\n "
73- "URL used: %s" , node_url )
73+ "URL used: %s" , url )
7474 return None
7575
7676 date = data ['elements' ][0 ]['timestamp' ]
You can’t perform that action at this time.
0 commit comments