Skip to content

Commit

Permalink
Updating README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaytotomato committed Aug 11, 2024
1 parent 684f03e commit 0148d84
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ import com.tomaytotomato.SearchLocationService;
public class Main {

public static void main(String[] args) {
SearchLocationService service = SearchLocationService.builder().build();
SearchLocationService searchLocationService = SearchLocationService.builder().build();

// Find all locations named San Francisco
List<Location> results = service.search("san francisco");
List<Location> results = searchLocationService.search("san francisco");
printResults(results);

// Narrow search to the US
results = service.search("san francisco, us");
results = searchLocationService.search("san francisco, us");
printResults(results);

// Narrow search further to California
results = service.search("san francisco, us california");
results = searchLocationService.search("san francisco, us california");
printResults(results);
}

Expand Down Expand Up @@ -145,7 +145,7 @@ Search any text for a location, the `SearchLocationService` can handle formatted

import com.tomaytotomato.SearchLocationService;

public class LocationSearchServiceExample {
public class SearchLocationServiceExample {

public static void main(String[] args) {
SearchLocationService searchLocationService = SearchLocationService.builder()
Expand Down

0 comments on commit 0148d84

Please sign in to comment.