Skip to content

Commit 5a35bcd

Browse files
committed
Changed naming to vectorsearch-cities and fixed typo #31
1 parent 7917865 commit 5a35bcd

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

example/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ Welcome to the ObjectBox tasks-list app example. Type help or ? for a list of co
3030
> exit
3131
```
3232

33-
## Vector-Search Example: Capitals
33+
## Vector-Search Example: Cities
3434

35-
This example application starts with a pre-defined set of capitals and their geo coordinates.
36-
It allows to search for nearest neighbors by capital (`capital_neighbors`) or by coordinates (`neighbors`) as well as adding more locations (`add`).
35+
This example application starts with a pre-defined set of capital cities and their geo coordinates.
36+
It allows to search for nearest neighbors of a city (`city_neighbors`) or by coordinates (`neighbors`) as well as adding more locations (`add`).
3737

3838
```
39-
python -m vectorsearch-capitals
40-
Welcome to the ObjectBox vectorsearch-capitals example. Type help or ? for a list of commands.
39+
python -m vectorsearch-cities
40+
Welcome to the ObjectBox vectorsearch-cities example. Type help or ? for a list of commands.
4141
> ls
4242
ID Name Latitude Longitude
4343
1 Abuja 9.08 7.40

example/vectorsearch-cities/__init__.py

Whitespace-only changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def list_cities_with_scores(city_score_tuples):
1717
print("{:3d} {:25s} {:>9.2f} {:>9.2f} {:>5.2f}".format(
1818
city.id, city.name, city.location[0], city.location[1], score))
1919

20-
class VectorSearchCitysCmd(Cmd):
20+
class VectorSearchCitiesCmd(Cmd):
2121
prompt = "> "
2222
def __init__(self, *args):
2323
Cmd.__init__(self, *args)
@@ -98,5 +98,5 @@ def do_exit(self, _):
9898

9999

100100
if __name__ == '__main__':
101-
app = VectorSearchCitysCmd()
101+
app = VectorSearchCitiesCmd()
102102
app.cmdloop('Welcome to the ObjectBox vectorsearch-cities example. Type help or ? for a list of commands.')

0 commit comments

Comments
 (0)