Skip to content

Commit

Permalink
Merge pull request #1259 from Steffaan/develop
Browse files Browse the repository at this point in the history
Update NearestPlugin.h to return correct names on mulitple results.
  • Loading branch information
DennisOSRM committed Nov 11, 2014
2 parents db8252e + 44036ae commit 2cc8ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugins/NearestPlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ template <class DataFacadeT> class NearestPlugin final : public BasePlugin
COORDINATE_PRECISION);
result.values["mapped coordinate"] = json_coordinate;
std::string temp_string;
facade->GetName(phantom_node_vector.front().name_id, temp_string);
facade->GetName(phantom_node_vector.at(i).name_id, temp_string);
result.values["name"] = temp_string;
results.values.push_back(result);
}
Expand Down

0 comments on commit 2cc8ae8

Please sign in to comment.