Skip to content

Commit

Permalink
conver osmids from routing to python lists from java lists
Browse files Browse the repository at this point in the history
  • Loading branch information
roopehub committed Jul 18, 2024
1 parent 76c83f1 commit bf6e6cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/r5py/r5/travel_time_matrix_computer.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _parse_results(self, from_id, results):
# add OSM IDs if found in results
# osmIdsResults are generated when routing with custom_cost_transport_network
if hasattr(results, "osmIdResults") and results.osmIdResults:
od_matrix["osm_ids"] = results.osmIdResults
od_matrix["osm_ids"] = list(results.osmIdResults)

# R5’s NULL value is MAX_INT32
od_matrix = self._fill_nulls(od_matrix)
Expand Down

0 comments on commit bf6e6cd

Please sign in to comment.