Skip to content

Commit

Permalink
Merge pull request #77 from Solucitation/feature/places
Browse files Browse the repository at this point in the history
feat: 구글 장소 유형 선별해서 재매핑
  • Loading branch information
anstjgus922 authored Aug 2, 2024
2 parents 4a8cc98 + eb1b389 commit ae5fedc
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ public class MapService {
private static final Map<String, String> CATEGORY_TYPE_MAP = new HashMap<>();

static {
CATEGORY_TYPE_MAP.put("restaurant", "american_restaurant|barbecue_restaurant|brazilian_restaurant|breakfast_restaurant|chinese_restaurant|fast_food_restaurant|french_restaurant|greek_restaurant|hamburger_restaurant|indian_restaurant|indonesian_restaurant|italian_restaurant|japanese_restaurant|korean_restaurant|lebanese_restaurant|meal_delivery|meal_takeaway|mediterranean_restaurant|mexican_restaurant|middle_eastern_restaurant|pizza_restaurant|ramen_restaurant|restaurant|sandwich_shop|seafood_restaurant|spanish_restaurant|steak_house|sushi_restaurant|thai_restaurant|turkish_restaurant|vegan_restaurant|vegetarian_restaurant|vietnamese_restaurant");
CATEGORY_TYPE_MAP.put("cafe", "bakery|cafe|coffee_shop|brunch_restaurant|ice_cream_shop");
CATEGORY_TYPE_MAP.put("restaurant", "american_restaurant|barbecue_restaurant|brazilian_restaurant|breakfast_restaurant|chinese_restaurant|fast_food_restaurant|french_restaurant|greek_restaurant|hamburger_restaurant|indian_restaurant|indonesian_restaurant|italian_restaurant|japanese_restaurant|korean_restaurant|lebanese_restaurant|mediterranean_restaurant|mexican_restaurant|middle_eastern_restaurant|pizza_restaurant|ramen_restaurant|restaurant|sandwich_shop|seafood_restaurant|spanish_restaurant|steak_house|sushi_restaurant|thai_restaurant|turkish_restaurant|vegan_restaurant|vegetarian_restaurant|vietnamese_restaurant");
CATEGORY_TYPE_MAP.put("cafe", "bakery|cafe|cafes|coffee_shop|coffee_shops|brunch_restaurant|ice_cream_shop");
CATEGORY_TYPE_MAP.put("walk", "park|hiking_area|national_park");
CATEGORY_TYPE_MAP.put("hiking", "park|hiking_area|national_park");
CATEGORY_TYPE_MAP.put("study", "library|book_store");
CATEGORY_TYPE_MAP.put("culture", "auto_parts_store|bicycle_store|book_store|cell_phone_store|clothing_store|convenience_store|department_store|discount_store|electronics_store|furniture_store|gift_shop|grocery_store|hardware_store|home_goods_store|home_improvement_store|jewelry_store|liquor_store|market|pet_store|shoe_store|shopping_mall|sporting_goods_store|store|supermarket|wholesaler|art_gallery|performing_arts_theater|movie_rental|movie_theater|museum|historical_landmark|tourist_attraction|spa");
CATEGORY_TYPE_MAP.put("hotplace", "casino|liquor_store|night_club|bar");
CATEGORY_TYPE_MAP.put("social", "amusement_center|amusement_park|aquarium|banquet_hall|bowling_alley|community_center|convention_center|cultural_center|dog_park|event_venue|zoo");
CATEGORY_TYPE_MAP.put("study", "library|bookstore");
CATEGORY_TYPE_MAP.put("culture", "clothing_stores|department_stores|department_store|discount_store|furniture_store|gift_shop|grocery_store|jewelry_stores|liquor_store|shoe_stores|shopping_mall|sporting_goods_store|store|art_gallery|performing_arts_theater|movie_theater|museum|historical_landmark|tourist_attraction|spa");
CATEGORY_TYPE_MAP.put("hot-place", "night_club|bar");
CATEGORY_TYPE_MAP.put("social", "amusement_center|amusement_park|aquarium|bowling_alley|cultural_center|dog_park|event_venue|zoo|athletic_field|fitness_center|gym|sports_club|sports_complex|stadium|swimming_pools");
}

public MapService(@Qualifier("placesRestTemplate") RestTemplate restTemplate, ObjectMapper objectMapper) {
Expand Down

0 comments on commit ae5fedc

Please sign in to comment.