Skip to content

Commit

Permalink
Update location index docs, fix #1793
Browse files Browse the repository at this point in the history
  • Loading branch information
easbar committed Nov 14, 2019
1 parent b9c6af3 commit c4ec580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/core/location-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ hopper.importOrLoad();
LocationIndex index = hopper.getLocationIndex();

// now you can fetch the closest edge via:
QueryResult qr = findClosest(lat, lon, EdgeFilter.ALL_EDGES );
QueryResult qr = index.findClosest(lat, lon, EdgeFilter.ALL_EDGES );
EdgeIteratorState edge = qr.getClosestEdge();
```

Expand Down

0 comments on commit c4ec580

Please sign in to comment.