Skip to content

Commit

Permalink
Atlas #2 - Updating toFeature to correctly get point geometry from co…
Browse files Browse the repository at this point in the history
…ordinates
  • Loading branch information
dleadbetter committed Mar 18, 2024
1 parent d25d239 commit aeaf6bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-data/src/utils/Typesense.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const toFeature = (result: TypesenseSearchResult) => {
let geometry;

if (result.coordinates) {
geometry = point(result.coordinates);
geometry = point(result.coordinates.slice().reverse());
} else {
geometry = result.geometry;
}
Expand Down

0 comments on commit aeaf6bf

Please sign in to comment.