mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-10 06:14:20 +00:00
Compare commits
7 Commits
map-per-di
...
patepelo-m
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0814b574a9 | ||
|
|
b4abce822e | ||
|
|
2e0443097a | ||
|
|
f6426fe689 | ||
|
|
6296de6ce9 | ||
|
|
4f63c5fdcf | ||
|
|
e4648fbc1f |
@@ -4,6 +4,7 @@ import android.location.Location;
|
||||
import android.text.TextUtils;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import app.organicmaps.MwmActivity;
|
||||
@@ -26,6 +27,10 @@ public class OnmapDownloader implements MwmActivity.LeftAnimationTrackListener
|
||||
{
|
||||
private static boolean sAutodownloadLocked;
|
||||
|
||||
private static final int HIDE_THRESHOLD = 2;
|
||||
// Default bundles (e.g., world/coasts). Used to approximate “user-downloaded” count.
|
||||
private static final int DEFAULT_MAP_BASELINE = 2;
|
||||
|
||||
private final MwmActivity mActivity;
|
||||
private final View mFrame;
|
||||
private final MaterialTextView mParent;
|
||||
@@ -33,6 +38,7 @@ public class OnmapDownloader implements MwmActivity.LeftAnimationTrackListener
|
||||
private final MaterialTextView mSize;
|
||||
private final WheelProgressView mProgress;
|
||||
private final MaterialButton mButton;
|
||||
private final View mOfflineExplanation;
|
||||
|
||||
private int mStorageSubscriptionSlot;
|
||||
|
||||
@@ -43,8 +49,10 @@ public class OnmapDownloader implements MwmActivity.LeftAnimationTrackListener
|
||||
@Override
|
||||
public void onStatusChanged(List<MapManager.StorageCallbackData> data)
|
||||
{
|
||||
if (mCurrentCountry == null)
|
||||
if (mCurrentCountry == null) {
|
||||
updateOfflineExplanationVisibility();
|
||||
return;
|
||||
}
|
||||
|
||||
for (MapManager.StorageCallbackData item : data)
|
||||
{
|
||||
@@ -58,7 +66,7 @@ public class OnmapDownloader implements MwmActivity.LeftAnimationTrackListener
|
||||
{
|
||||
mCurrentCountry.update();
|
||||
updateProgressState(false);
|
||||
|
||||
updateOfflineExplanationVisibility();
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -101,6 +109,12 @@ public class OnmapDownloader implements MwmActivity.LeftAnimationTrackListener
|
||||
return enqueued || progress || applying;
|
||||
}
|
||||
|
||||
private void updateOfflineExplanationVisibility() {
|
||||
if (mOfflineExplanation == null) return;
|
||||
// hide once threshold reached; safe to call repeatedly.
|
||||
app.organicmaps.util.UiUtils.showIf(MapManager.nativeGetDownloadedCount() < (DEFAULT_MAP_BASELINE + HIDE_THRESHOLD), mOfflineExplanation);
|
||||
}
|
||||
|
||||
private void updateProgressState(boolean shouldAutoDownload)
|
||||
{
|
||||
updateStateInternal(shouldAutoDownload);
|
||||
@@ -108,6 +122,8 @@ public class OnmapDownloader implements MwmActivity.LeftAnimationTrackListener
|
||||
|
||||
private void updateStateInternal(boolean shouldAutoDownload)
|
||||
{
|
||||
updateOfflineExplanationVisibility();
|
||||
|
||||
boolean showFrame =
|
||||
(mCurrentCountry != null && !mCurrentCountry.present && !RoutingController.get().isNavigating());
|
||||
if (showFrame)
|
||||
@@ -191,6 +207,9 @@ public class OnmapDownloader implements MwmActivity.LeftAnimationTrackListener
|
||||
mProgress = controls.findViewById(R.id.wheel_downloader_progress);
|
||||
mButton = controls.findViewById(R.id.downloader_button);
|
||||
|
||||
mOfflineExplanation = mFrame.findViewById(R.id.offline_explanation);
|
||||
updateOfflineExplanationVisibility();
|
||||
|
||||
mProgress.setOnClickListener(v -> {
|
||||
if (mCurrentCountry == null)
|
||||
return;
|
||||
@@ -247,6 +266,7 @@ public class OnmapDownloader implements MwmActivity.LeftAnimationTrackListener
|
||||
|
||||
public void onResume()
|
||||
{
|
||||
updateOfflineExplanationVisibility();
|
||||
if (mStorageSubscriptionSlot == 0)
|
||||
{
|
||||
mStorageSubscriptionSlot = MapManager.nativeSubscribe(mStorageCallback);
|
||||
|
||||
@@ -153,7 +153,6 @@ public class EditorFragment extends BaseMwmFragment implements View.OnClickListe
|
||||
private final Map<Metadata.MetadataType, View> mDetailsBlocks = new HashMap<>();
|
||||
private final Map<Metadata.MetadataType, View> mSocialMediaBlocks = new HashMap<>();
|
||||
private MaterialButton mReset;
|
||||
private MaterialButton mDisused;
|
||||
|
||||
private EditorHostFragment mParent;
|
||||
|
||||
@@ -828,8 +827,6 @@ public class EditorFragment extends BaseMwmFragment implements View.OnClickListe
|
||||
osmInfo.setMovementMethod(LinkMovementMethod.getInstance());
|
||||
mReset = view.findViewById(R.id.reset);
|
||||
mReset.setOnClickListener(this);
|
||||
mDisused = view.findViewById(R.id.disused);
|
||||
mDisused.setOnClickListener(this);
|
||||
|
||||
mDetailsBlocks.put(Metadata.MetadataType.FMD_OPEN_HOURS, blockOpeningHours);
|
||||
mDetailsBlocks.put(Metadata.MetadataType.FMD_PHONE_NUMBER, blockPhone);
|
||||
@@ -897,8 +894,6 @@ public class EditorFragment extends BaseMwmFragment implements View.OnClickListe
|
||||
mParent.addLanguage();
|
||||
else if (id == R.id.reset)
|
||||
reset();
|
||||
else if (id == R.id.disused)
|
||||
placeDisused();
|
||||
else if (id == R.id.block_outdoor_seating)
|
||||
mOutdoorSeating.toggle();
|
||||
}
|
||||
@@ -944,12 +939,9 @@ public class EditorFragment extends BaseMwmFragment implements View.OnClickListe
|
||||
if (mParent.addingNewObject())
|
||||
{
|
||||
UiUtils.hide(mReset);
|
||||
UiUtils.hide(mDisused);
|
||||
return;
|
||||
}
|
||||
|
||||
mDisused.setVisibility(Editor.nativeCanMarkPlaceAsDisused() ? View.VISIBLE : View.GONE);
|
||||
|
||||
if (Editor.nativeIsMapObjectUploaded())
|
||||
{
|
||||
mReset.setText(R.string.editor_place_doesnt_exist);
|
||||
@@ -1022,19 +1014,6 @@ public class EditorFragment extends BaseMwmFragment implements View.OnClickListe
|
||||
dialogFragment.setTextSaveListener(this::commitPlaceDoesntExists);
|
||||
}
|
||||
|
||||
private void placeDisused()
|
||||
{
|
||||
new MaterialAlertDialogBuilder(requireActivity(), R.style.MwmTheme_AlertDialog)
|
||||
.setTitle(R.string.editor_mark_business_vacant_title)
|
||||
.setMessage(R.string.editor_mark_business_vacant_description)
|
||||
.setPositiveButton(R.string.editor_submit, (dlg, which) -> {
|
||||
Editor.nativeMarkPlaceAsDisused();
|
||||
mParent.processEditedFeatures();
|
||||
})
|
||||
.setNegativeButton(android.R.string.cancel, null)
|
||||
.show();
|
||||
}
|
||||
|
||||
private void commitPlaceDoesntExists(@NonNull String text)
|
||||
{
|
||||
Editor.nativePlaceDoesNotExist(text);
|
||||
|
||||
@@ -358,7 +358,7 @@ public class EditorHostFragment
|
||||
.show();
|
||||
}
|
||||
|
||||
public void processEditedFeatures()
|
||||
private void processEditedFeatures()
|
||||
{
|
||||
if (OsmOAuth.isAuthorized())
|
||||
{
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
package app.organicmaps.editor;
|
||||
|
||||
import android.content.res.Configuration;
|
||||
import android.os.Bundle;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.core.os.ConfigurationCompat;
|
||||
import androidx.core.os.LocaleListCompat;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import app.organicmaps.base.BaseMwmRecyclerFragment;
|
||||
import app.organicmaps.sdk.editor.Editor;
|
||||
@@ -11,6 +14,7 @@ import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Set;
|
||||
|
||||
public class LanguagesFragment extends BaseMwmRecyclerFragment<LanguagesAdapter>
|
||||
@@ -32,10 +36,23 @@ public class LanguagesFragment extends BaseMwmRecyclerFragment<LanguagesAdapter>
|
||||
Set<String> existingLanguages =
|
||||
args != null ? new HashSet<>(args.getStringArrayList(EXISTING_LOCALIZED_NAMES)) : new HashSet<>();
|
||||
|
||||
Configuration config = requireContext().getResources().getConfiguration();
|
||||
LocaleListCompat systemLocales = ConfigurationCompat.getLocales(config);
|
||||
|
||||
List<Language> languages = new ArrayList<>();
|
||||
List<Language> systemLanguages = new ArrayList<>();
|
||||
|
||||
for (Language lang : Editor.nativeGetSupportedLanguages(false))
|
||||
{
|
||||
if (existingLanguages.contains(lang.code))
|
||||
// Separately extract system languages
|
||||
for (int i = 0; i < systemLocales.size(); i++)
|
||||
{
|
||||
Locale locale = systemLocales.get(i);
|
||||
if (locale != null && locale.getLanguage().equals(lang.code))
|
||||
systemLanguages.add(lang);
|
||||
}
|
||||
|
||||
if (existingLanguages.contains(lang.code) || systemLanguages.contains(lang))
|
||||
continue;
|
||||
|
||||
languages.add(lang);
|
||||
@@ -43,6 +60,8 @@ public class LanguagesFragment extends BaseMwmRecyclerFragment<LanguagesAdapter>
|
||||
|
||||
Collections.sort(languages, Comparator.comparing(lhs -> lhs.name));
|
||||
|
||||
languages.addAll(0, systemLanguages);
|
||||
|
||||
return new LanguagesAdapter(this, languages.toArray(new Language[languages.size()]));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package app.organicmaps.editor;
|
||||
|
||||
import android.content.res.ColorStateList;
|
||||
import android.util.SparseArray;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
@@ -11,6 +12,7 @@ import androidx.annotation.IdRes;
|
||||
import androidx.annotation.IntRange;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.widget.SwitchCompat;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import app.organicmaps.R;
|
||||
@@ -381,6 +383,29 @@ class SimpleTimetableAdapter extends RecyclerView.Adapter<SimpleTimetableAdapter
|
||||
final boolean enable = mComplementItem != null && mComplementItem.weekdays.length != 0;
|
||||
final String text = mFragment.getString(R.string.editor_time_add);
|
||||
mAdd.setEnabled(enable);
|
||||
final ColorStateList bgButtonColor = new ColorStateList(
|
||||
new int[][]{
|
||||
new int[]{android.R.attr.state_enabled}, // enabled
|
||||
new int[]{-android.R.attr.state_enabled} // disabled
|
||||
},
|
||||
new int[]{
|
||||
ContextCompat.getColor(
|
||||
mAdd.getContext(), R.color.base_accent),
|
||||
ContextCompat.getColor(mAdd.getContext(), R.color.button_accent_disabled)
|
||||
});
|
||||
final ColorStateList textButtonColor = new ColorStateList(
|
||||
new int[][]{
|
||||
new int[]{android.R.attr.state_enabled}, // enabled
|
||||
new int[]{-android.R.attr.state_enabled} // disabled
|
||||
},
|
||||
new int[]{
|
||||
ContextCompat.getColor(
|
||||
mAdd.getContext(),
|
||||
UiUtils.getStyledResourceId(mAdd.getContext(), android.R.attr.textColorPrimaryInverse)),
|
||||
ContextCompat.getColor(mAdd.getContext(), R.color.button_accent_text_disabled)
|
||||
});
|
||||
mAdd.setBackgroundTintList(bgButtonColor);
|
||||
mAdd.setTextColor(textButtonColor);
|
||||
mAdd.setText(enable ? text + " (" + TimeFormatUtils.formatWeekdays(mComplementItem) + ")" : text);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,27 +26,33 @@
|
||||
android:clipChildren="false"
|
||||
android:gravity="center"
|
||||
tools:ignore="UselessParent">
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
<LinearLayout
|
||||
android:id="@+id/offline_explanation"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/margin_eighth"
|
||||
android:gravity="center_horizontal"
|
||||
android:textStyle="bold"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:text="@string/offline_explanation_title"/>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/margin_eighth"
|
||||
android:gravity="center_horizontal"
|
||||
android:textStyle="normal"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body1"
|
||||
android:text="@string/offline_explanation_text"/>
|
||||
<com.google.android.material.divider.MaterialDivider
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:layout_marginTop="@dimen/margin_quarter"
|
||||
android:layout_marginBottom="@dimen/margin_quarter"/>
|
||||
android:orientation="vertical">
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/margin_eighth"
|
||||
android:gravity="center_horizontal"
|
||||
android:textStyle="bold"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:text="@string/offline_explanation_title"/>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/margin_eighth"
|
||||
android:gravity="center_horizontal"
|
||||
android:textStyle="normal"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body1"
|
||||
android:text="@string/offline_explanation_text"/>
|
||||
<com.google.android.material.divider.MaterialDivider
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:layout_marginTop="@dimen/margin_quarter"
|
||||
android:layout_marginBottom="@dimen/margin_quarter"/>
|
||||
</LinearLayout>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/downloader_parent"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -394,8 +394,7 @@
|
||||
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
android:id="@+id/cv__more"
|
||||
style="@style/MwmWidget.Editor.CardView"
|
||||
android:layout_marginBottom="@dimen/margin_base">
|
||||
style="@style/MwmWidget.Editor.CardView">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -422,17 +421,6 @@
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
</LinearLayout>
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/disused"
|
||||
style="@style/MwmWidget.M3.Button.Secondary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:layout_marginBottom="@dimen/margin_quarter"
|
||||
app:backgroundTint="?cardBackground"
|
||||
android:textColor="@color/base_red"
|
||||
app:strokeColor="@color/base_red"
|
||||
android:text="@string/editor_business_vacant_button"/>
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/reset"
|
||||
style="@style/MwmWidget.M3.Button.Secondary"
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="@dimen/margin_base_plus"
|
||||
@@ -12,9 +11,7 @@
|
||||
style="@style/MwmWidget.M3.Button.Primary"
|
||||
android:layout_gravity="center"
|
||||
android:enabled="false"
|
||||
android:background="?accentButtonBackground"
|
||||
android:padding="@dimen/margin_base"
|
||||
android:text="@string/editor_time_add"
|
||||
app:backgroundTint="@null"/>
|
||||
android:textColor="?android:textColorPrimaryInverse"
|
||||
android:text="@string/editor_time_add" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
@@ -17,29 +17,34 @@
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center_horizontal"
|
||||
android:background="@drawable/onmap_downloader_background">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="@dimen/square_block_size"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/margin_eighth"
|
||||
android:gravity="center_horizontal"
|
||||
android:textStyle="bold"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:text="@string/offline_explanation_title"/>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxWidth="212dp"
|
||||
android:layout_marginBottom="@dimen/margin_eighth"
|
||||
android:gravity="center_horizontal"
|
||||
android:textStyle="normal"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body1"
|
||||
android:text="@string/offline_explanation_text"/>
|
||||
<com.google.android.material.divider.MaterialDivider
|
||||
<LinearLayout
|
||||
android:id="@+id/offline_explanation"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:layout_marginTop="@dimen/margin_quarter"
|
||||
android:layout_marginBottom="@dimen/margin_quarter"/>
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/margin_eighth"
|
||||
android:gravity="center_horizontal"
|
||||
android:textStyle="bold"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:text="@string/offline_explanation_title"/>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxWidth="212dp"
|
||||
android:layout_marginBottom="@dimen/margin_eighth"
|
||||
android:gravity="center_horizontal"
|
||||
android:textStyle="normal"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body1"
|
||||
android:text="@string/offline_explanation_text"/>
|
||||
<com.google.android.material.divider.MaterialDivider
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:layout_marginTop="@dimen/margin_quarter"
|
||||
android:layout_marginBottom="@dimen/margin_quarter"/>
|
||||
</LinearLayout>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/downloader_parent"
|
||||
android:layout_width="@dimen/square_block_size"
|
||||
|
||||
@@ -551,14 +551,6 @@
|
||||
<string name="editor_place_doesnt_exist_description">Describe what the place looks like now to send an error note to the OpenStreetMap community</string>
|
||||
<!-- Error message for "Place doesn't exist" dialog when comment is empty -->
|
||||
<string name="delete_place_empty_comment_error">Please indicate the reason for deleting the place</string>
|
||||
<!-- Button in the editor to mark business as vacant -->
|
||||
<string name="editor_business_vacant_button">Business is vacant</string>
|
||||
<!-- Title of confirmation dialog before marking business as vacant -->
|
||||
<string name="editor_mark_business_vacant_title">Mark business as vacant</string>
|
||||
<!-- Description in confirmation dialog before marking business as vacant -->
|
||||
<string name="editor_mark_business_vacant_description">Use this if the business has moved out and the space is empty and ready for a new tenant.</string>
|
||||
<!-- Submit change to OSM in the editor -->
|
||||
<string name="editor_submit">Submit</string>
|
||||
<!-- Phone number error message -->
|
||||
<string name="error_enter_correct_phone">Enter a valid phone number</string>
|
||||
<string name="error_enter_correct_web">Enter a valid web address</string>
|
||||
|
||||
@@ -277,12 +277,6 @@ JNIEXPORT jboolean JNICALL Java_app_organicmaps_sdk_editor_Editor_nativeIsNameEd
|
||||
return g_editableMapObject.IsNameEditable();
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_app_organicmaps_sdk_editor_Editor_nativeCanMarkPlaceAsDisused(JNIEnv * env,
|
||||
jclass clazz)
|
||||
{
|
||||
return g_editableMapObject.CanMarkPlaceAsDisused();
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_app_organicmaps_sdk_editor_Editor_nativeIsPointType(JNIEnv * env, jclass clazz)
|
||||
{
|
||||
return g_editableMapObject.IsPointType();
|
||||
@@ -440,11 +434,6 @@ JNIEXPORT void JNICALL Java_app_organicmaps_sdk_editor_Editor_nativeRollbackMapO
|
||||
g_framework->NativeFramework()->RollBackChanges(g_editableMapObject.GetID());
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_app_organicmaps_sdk_editor_Editor_nativeMarkPlaceAsDisused(JNIEnv * env, jclass clazz)
|
||||
{
|
||||
g_framework->NativeFramework()->MarkPlaceAsDisused(g_editableMapObject);
|
||||
}
|
||||
|
||||
JNIEXPORT jobjectArray JNICALL Java_app_organicmaps_sdk_editor_Editor_nativeGetAllCreatableFeatureTypes(JNIEnv * env,
|
||||
jclass clazz,
|
||||
jstring jLang)
|
||||
|
||||
@@ -99,7 +99,6 @@ public final class Editor
|
||||
|
||||
public static native boolean nativeIsAddressEditable();
|
||||
public static native boolean nativeIsNameEditable();
|
||||
public static native boolean nativeCanMarkPlaceAsDisused();
|
||||
public static native boolean nativeIsPointType();
|
||||
public static native boolean nativeIsBuilding();
|
||||
|
||||
@@ -165,7 +164,6 @@ public final class Editor
|
||||
public static native void nativeCreateNote(String text);
|
||||
public static native void nativePlaceDoesNotExist(@NonNull String comment);
|
||||
public static native void nativeRollbackMapObject();
|
||||
public static native void nativeMarkPlaceAsDisused();
|
||||
public static native void nativeCreateStandaloneNote(double lat, double lon, String text);
|
||||
|
||||
/**
|
||||
|
||||
@@ -1236,6 +1236,7 @@
|
||||
<string name="type.shop.kitchen">Kitchen Store</string>
|
||||
<string name="type.shop.laundry">Laundry</string>
|
||||
<string name="type.shop.mall">Mall</string>
|
||||
<string name="type.shop.beauty.day_spa">Day Spa</string>
|
||||
<string name="type.shop.massage">Massage Salon</string>
|
||||
<string name="type.shop.mobile_phone">Mobile Phone Store</string>
|
||||
<string name="type.shop.money_lender">Money Lender</string>
|
||||
|
||||
@@ -2,28 +2,28 @@
|
||||
"@category_eat": "Where to eat|eat|Food",
|
||||
"@category_food": "4Groceries|Grocery|Food",
|
||||
"@category_transport": "5Transport",
|
||||
"@category_fuel": "2Gas|Gasoline|3Petrol|4Diesel|3Fuel",
|
||||
"@category_fuel": "2Gas|4Gasoline|3Petrol|4Diesel|3Fuel",
|
||||
"@category_parking": "4Parking",
|
||||
"@category_shopping": "4Shopping",
|
||||
"@category_hotel": "Hotel|hotels",
|
||||
"@category_shopping": "4Shopping|shops",
|
||||
"@category_hotel": "3Hotel|hotels|4Accomodations|accommodation|sleep",
|
||||
"@category_tourism": "3Sights|3Attractions|3Tourism",
|
||||
"@category_entertainment": "Entertainment",
|
||||
"@category_nightlife": "Nightlife",
|
||||
"@category_children": "Family holiday",
|
||||
"@category_entertainment": "4Entertainment",
|
||||
"@category_nightlife": "4Nightlife",
|
||||
"@category_children": "4Family holiday|children|kid|kids|babies|family|family friendly",
|
||||
"@category_atm": "ATM|Cash machine",
|
||||
"@category_rv": "2RV Facilities|4Caravan|Vanlife|5Campervan|5Motorhome",
|
||||
"amenity-atm|@category_atm": "money|U+1F3E7|U+1F4B2|U+1F4B3|U+1F4B4|U+1F4B5|U+1F4B6|U+1F4B7",
|
||||
"@category_rv": "2RV Facilities|RV|4Caravan|Vanlife|5Campervan|5Motorhome|camper",
|
||||
"amenity-atm|@category_atm": "money|cash|U+1F3E7|U+1F4B2|U+1F4B3|U+1F4B4|U+1F4B5|U+1F4B6|U+1F4B7",
|
||||
"@category_bank": "3Bank",
|
||||
"@category_secondhand": "4Second Hand",
|
||||
"@category_secondhand": "4Second Hand|second-hand|vintage|5Vintage shop|4Thrift store|5Resale shop|6Opportunity shop|4Used-goods|thrift|thrifting",
|
||||
"amenity-bank|@category_bank": "money|U+1F3E6|U+1F4B0|U+1F4B2|U+1F4B3|U+1F4B4|U+1F4B5|U+1F4B6|U+1F4B7",
|
||||
"@category_recycling": "4Recycling|Waste utilization|Waste disposal|Recyclables|Separate garbage collection|Waste sorting|Reuse",
|
||||
"amenity-bureau_de_change": "3Currency Exchange|3exchange|money|U+1F4B1|U+1F4B2|U+1F4B4|U+1F4B5|U+1F4B6|U+1F4B7",
|
||||
"amenity-studio": "Media Studio|Studio",
|
||||
"amenity-studio": "5Media studio|studio",
|
||||
"amenity-bar|amenity-pub|@category_eat|@category_nightlife": "2Bar|2pub|beer|drink|U+1F37A|U+1F37B|U+1F376|tavern|bars and pubs|brew pub|cocktail lounge",
|
||||
"amenity-cafe|@category_eat": "3Cafe|U+2615|U+1F356|U+1F357|U+1F35A|U+1F35B|U+1F35C|U+1F35D|U+1F363|U+1F366|U+1F367|U+1F368|U+1F369|U+1F370|U+1F372|U+1F374|U+1F377|U+1F60B|U+1F375|coffee|cafeteria",
|
||||
"amenity-fast_food|@category_eat": "4Fast Food|takeaway|U+1F354|U+1F355|U+1F35F|U+1F363|U+1F366|U+1F367|U+1F368|U+1F369|U+1F370|U+1F372|U+1F374|food to go|junk food",
|
||||
"amenity-restaurant|@category_eat": "3Restaurant|U+1F356|U+1F357|U+1F35A|U+1F35B|U+1F35C|U+1F35D|U+1F363|U+1F366|U+1F367|U+1F368|U+1F369|U+1F370|U+1F372|U+1F374|U+1F377|U+1F60B",
|
||||
"amenity-fuel|@category_fuel": "Gas Station|Petrol Station|3Filling Station|U+26FD",
|
||||
"amenity-fuel|@category_fuel": "3Gas station|4Petrol station|3Filling station|fill up|U+26FD",
|
||||
"@shop": "Shop|Store|U+1F3EA|U+1F3EC",
|
||||
"shop-bakery|shop-pastry|@category_eat|@category_food|@shop": "3Bakery|3Pastry|Cake|3Cakes|U+1F35E",
|
||||
"shop|@shop": "",
|
||||
@@ -34,13 +34,13 @@
|
||||
"shop-farm|@category_food|@shop": "Farm food",
|
||||
"shop-garden_centre|@shop": "4Garden Centre|U+1F3E1",
|
||||
"shop-grocery|@category_food|@shop": "Grocery",
|
||||
"shop-health_food|@category_food|@shop": "Health food",
|
||||
"shop-hearing_aids|@shop": "Hearing Aids",
|
||||
"shop-health_food|@category_food|@shop": "7Health food|7Healthy food|healthfood|organic|vegan|vegetarian",
|
||||
"shop-hearing_aids|@shop": "7Hearing Aids",
|
||||
"shop-mobile_phone|@shop": "4Cell Phones|4Mobile Phones|6smartphones|electronics store|U+1F4F1|U+1F4F2",
|
||||
"shop-florist|@shop": "4Florist|U+1F337|U+1F338|U+1F339|U+1F33A|U+1F33B|U+1F33C|U+1F490|U+1F33E|4flowers|flower shop|floral shop|floral arrangements|same day flowers|bouquet",
|
||||
"shop-butcher|@category_food|@shop": "4Butcher|U+1F356|U+1F357",
|
||||
"shop-butcher|@category_food|@shop": "4Butcher|meat|U+1F356|U+1F357",
|
||||
"shop-furniture|@shop": "4Furniture",
|
||||
"shop-kitchen|@shop": "Kitchen|Kitchen Studio",
|
||||
"shop-kitchen|@shop": "4Kitchen|Kitchen Studio|kitchenware",
|
||||
"shop-alcohol|@category_food|@shop": "4liquor|4alcohol|U+1F377",
|
||||
"shop-books|@shop": "Bookstore|bookshop|3books|U+1F4D6|U+1F4DA|U+1F4D9|U+1F4D8|U+1F4D7|U+1F4D5",
|
||||
"shop-shoes|@category_shopping|@shop": "Shoe|U+1F461|U+1F460|U+1F462|U+1F45E|U+1F45F|3shoes|4footwear",
|
||||
@@ -48,95 +48,95 @@
|
||||
"shop-hardware|shop-doityourself|@shop": "4Hardware|4Home Improvement|DIY|U+1F529|U+1F528|do it yourself|do-it-yourself",
|
||||
"shop-houseware|@shop": "4Housewares",
|
||||
"shop-jewelry|@category_shopping|@shop": "4Jewelry|U+1F48D",
|
||||
"shop-optician|@shop": "4Optician|U+1F453",
|
||||
"shop-gift|@category_shopping|@shop": "Gift|U+1F381|souvenir|4souvenirs|3gifts|presents",
|
||||
"shop-beauty": "4Beauty Shop|barber|beautician|hairdresser|hairdressing|haircut|U+1F484|beauty salon|hair salon|beauty parlor|hair and nail salon|nail salon|coloring",
|
||||
"shop-optician|@shop": "4Optician|glasses|sunglasses|U+1F453",
|
||||
"shop-gift|@category_shopping|@shop": "Gift|U+1F381|souvenir|souvenirs|3gifts|presents|4Souvenir shop|gift shop|giftshop",
|
||||
"shop-beauty": "4Beauty Shop|beautician|U+1F484|beauty salon|beauty parlor|nail salon|coloring",
|
||||
"shop-greengrocer|@category_food|@shop": "4Greengrocer|U+1F345|U+1F346|U+1F33D|U+1F360|U+1F348|U+1F347|U+1F349|U+1F34A|U+1F34C|U+1F34D|U+1F34E|U+1F34F|U+1F350|U+1F351|U+1F353",
|
||||
"shop-sports|@category_shopping|@shop": "4Sports Goods|U+1F3BF|U+1F3A3|U+1F3C2|U+1F6B4|U+26BD|U+1F3C0|U+1F3C8|U+26BE|U+1F3BE|U+1F3C9|U+26F3",
|
||||
"shop-supermarket|@category_food|@shop": "3Supermarket",
|
||||
"shop-mall|@category_shopping|@shop": "Mall|Gallery|shopping arcade|entertainment center|retail",
|
||||
"shop-department_store|@category_shopping|@shop": "4Department",
|
||||
"shop-mall|@category_shopping|@shop": "3Mall|Gallery|shopping arcade|entertainment center|retail",
|
||||
"shop-department_store|@category_shopping|@shop": "4Department|department store",
|
||||
"shop-beverages|@category_food|@shop": "4Beverages|4drinks|U+1F379",
|
||||
"shop-computer|@shop": "4Computer|U+1F4BB",
|
||||
"shop-computer|@shop": "4Computer shop|computer|computers|U+1F4BB",
|
||||
"shop-confectionery|craft-confectionery|@category_food|@shop": "4Sweets|4confectionery|candies|candy|U+1F36C|U+1F36D|sweetshop|tuck|Confectioner",
|
||||
"shop-laundry": "4Laundry|Laundrette|laundromat",
|
||||
"shop-toys|@category_children|@shop": "Toy|toyshop|kids|toys|kids toys",
|
||||
"amenity-marketplace|@category_food": "3Marketplace|market",
|
||||
"amenity-mobile_money_agent": "Mobile Money Agent|mobile money",
|
||||
"amenity-money_transfer": "Money Transfer",
|
||||
"shop-clothes|@category_shopping|@shop": "3Clothes|U+1F45A|U+1F457|U+1F456|U+1F455|clothing|wear",
|
||||
"shop-caravan|@category_rv|@shop": "2RV dealership|4Caravan dealership|Motorhome dealership",
|
||||
"shop-car|@shop": "3Car Dealership|Auto Dealer|U+1F697|U+1F698|U+1F699",
|
||||
"shop-bicycle|@shop": "4Bicycle|Bike|cycles|bikes|U+1F6B2|U+1F6B4|U+1F6B5",
|
||||
"amenity-mobile_money_agent": "6Mobile Money Agent|mobile money",
|
||||
"amenity-money_transfer": "5Money Transfer",
|
||||
"shop-clothes|@category_shopping|@shop": "3Clothes|U+1F45A|U+1F457|U+1F456|U+1F455|clothing|apparel|wear|fashion|garments ",
|
||||
"shop-caravan|@category_rv|@shop": "2RV dealership|4Caravan dealership|5Motorhome dealership",
|
||||
"shop-car|@shop": "3Car Dealership|4Auto Dealer|U+1F697|U+1F698|U+1F699",
|
||||
"shop-bicycle|@shop": "4Bicycle|Bike|7Cycling shop|cycles|bikes|U+1F6B2|U+1F6B4|U+1F6B5",
|
||||
"shop-kiosk": "3Kiosk|U+1F4F0",
|
||||
"highway-bus_stop|@category_transport": "2Bus Stop|bus|stop|U+1F68C|U+1F68F|U+1F68E|U+1F690",
|
||||
"railway-tram_stop|@category_transport": "3Tram Stop|tram|stop|U+1F683",
|
||||
"amenity-bus_station|@category_transport": "2Bus Station|bus|U+1F68C|U+1F68F|U+1F68D",
|
||||
"railway-station|railway-halt|building-train_station|@category_transport": "3Train Station|trainstation|4railway|railroad|4station|U+1F684|U+1F685|U+1F689|U+1F682|U+1F686|U+1F688|U+1F68A|U+1F68B|Rail Halt",
|
||||
"railway-station-funicular": "Funicular",
|
||||
"railway-station-subway|@category_transport": "3Subway Station|3tube|3metro|3underground|U+1F687",
|
||||
"railway-station-funicular": "4Funicular",
|
||||
"railway-station-subway|@category_transport": "3Subway Station|subway|3tube|3metro|3underground|U+1F687",
|
||||
"amenity-ferry_terminal|@category_transport": "3Ferry|terminal|U+1F6A2|U+1F6A4|U+2693",
|
||||
"amenity-taxi|@category_transport": "3Taxi|Taxi Stand|Taxi Rank|U+1F695|U+1F696",
|
||||
"amenity-taxi|@category_transport": "Taxi|3Taxi Stand|Taxi Rank|U+1F695|U+1F696",
|
||||
"amenity-townhall": "3Town Hall|townhall|city hall|guildhall|village hall|4municipal hall|civic centre",
|
||||
"tourism-attraction|@category_tourism": "4Attraction|U+1F3A0|U+1F3A1|U+1F3A2|U+1F3AA",
|
||||
"tourism-artwork": "3Artwork|U+1F3A8",
|
||||
"tourism-viewpoint|@category_tourism": "4Viewpoint|Vista",
|
||||
"tourism-information": "4Tourist Information|4information|U+1F481",
|
||||
"tourism-picnic_site|amenity-bbq|leisure-picnic_table": "3Picnic Site|Barbecue Grill|Picnic Table",
|
||||
"amenity-place_of_worship": "Place of Worship|3temple|U+1F64F",
|
||||
"amenity-place_of_worship-christian": "4Church|place of worship|temple|4cathedral|basilica|U+1F64F|U+26EA|U+271D|U+2626",
|
||||
"amenity-place_of_worship-muslim": "4Mosque|tekke|place of worship|temple|U+1F64F|U+262A|U+1F54B|U+1F54C|U+262A",
|
||||
"amenity-place_of_worship-buddhist": "3Temple|place of worship|U+1F64F|U+26EA|U+2638",
|
||||
"amenity-place_of_worship-hindu": "3Temple|place of worship|U+1F64F|U+1F549",
|
||||
"amenity-place_of_worship-shinto": "Shrine|place of worship|3temple|U+1F64F|U+26E9",
|
||||
"amenity-place_of_worship-jewish": "4Synagogue|place of worship|temple|U+1F64F|U+1F54D|U+2721",
|
||||
"amenity-place_of_worship-taoist": "3Temple|place of worship|U+1F64F|U+262F",
|
||||
"tourism-picnic_site|amenity-bbq|leisure-picnic_table": "3Picnic Site|picnic|Barbecue Grill|Picnic Table|bbq|Barbec",
|
||||
"amenity-place_of_worship": "5Place of Worship|3temple|U+1F64F",
|
||||
"amenity-place_of_worship-christian": "4Church|place of worship|temple|4cathedral|basilica|christianity|U+1F64F|U+26EA|U+271D|U+2626",
|
||||
"amenity-place_of_worship-muslim": "4Mosque|tekke|place of worship|temple|islam|U+1F64F|U+262A|U+1F54B|U+1F54C|U+262A",
|
||||
"amenity-place_of_worship-buddhist": "3Temple|place of worship|4buddist temple|4buddhism|U+1F64F|U+26EA|U+2638",
|
||||
"amenity-place_of_worship-hindu": "3Temple|place of worship|4hindu temple|4hinduism|U+1F64F|U+1F549",
|
||||
"amenity-place_of_worship-shinto": "Shrine|place of worship|3temple|4shinto temple|4shinto|U+1F64F|U+26E9",
|
||||
"amenity-place_of_worship-jewish": "4Synagogue|place of worship|3temple|judaism|U+1F64F|U+1F54D|U+2721",
|
||||
"amenity-place_of_worship-taoist": "3Temple|place of worship|4taoism|4taoist temple|U+1F64F|U+262F",
|
||||
"tourism-museum|@category_tourism": "2Museum|U+1F3A8|3exhibition|3gallery",
|
||||
"waterway-waterfall|@category_tourism": "2Waterfall",
|
||||
"historic-archaeological_site|@category_tourism": "4Archaeological Site",
|
||||
"historic-battlefield": "Battlefield",
|
||||
"historic-stone": "Historic Stone",
|
||||
"historic-boundary_stone": "Boundary Stone",
|
||||
"historic-stone": "Historic stone",
|
||||
"historic-boundary_stone": "Boundary stone",
|
||||
"historic-castle|@category_tourism": "4Castle|4Palace|4Fortress|U+1F3EF|U+1F3F0|U+1F451|U+1F478|Hillfort|Kremlin|Manor house",
|
||||
"historic-city_gate|@category_tourism": "City gate",
|
||||
"historic-citywalls|@category_tourism": "City Wall",
|
||||
"historic-city_gate|@category_tourism": "4City gate",
|
||||
"historic-citywalls|@category_tourism": "4City wall",
|
||||
"historic-fort|@category_tourism": "Fort",
|
||||
"historic-gallows|@category_tourism": "Gallows",
|
||||
"historic-memorial|@category_tourism": "4Memorial|monument|U+1F5FC|U+1F5FD|U+1F5FF",
|
||||
"historic-memorial-cross": "Memorial cross",
|
||||
"historic-memorial-plaque": "Commemorative plaque",
|
||||
"historic-memorial-sculpture|@category_tourism": "Sculpture",
|
||||
"historic-memorial-statue|@category_tourism": "Statue",
|
||||
"historic-memorial-sculpture|@category_tourism": "5Sculpture",
|
||||
"historic-memorial-statue|@category_tourism": "3Statue",
|
||||
"historic-memorial-stolperstein": "Stolperstein",
|
||||
"historic-memorial-war_memorial|@category_tourism": "War memorial",
|
||||
"historic-monument|@category_tourism": "4Monument|U+1F5FD|U+1F5FF",
|
||||
"historic-pillory|@category_tourism": "Pillory",
|
||||
"historic-cannon": "Cannon",
|
||||
"historic-anchor": "Historic Anchor",
|
||||
"historic-ruins|@category_tourism": "4Historic Ruins|3Ruins|U+1F5FF",
|
||||
"historic-mine": "Historic Mine",
|
||||
"historic-anchor": "4Historic anchor",
|
||||
"historic-ruins|@category_tourism": "4Historic ruins|3Ruins|U+1F5FF",
|
||||
"historic-mine": "4Historic mine",
|
||||
"historic-ship|@category_tourism": "Ship|boat",
|
||||
"historic-wreck": "Shipwreck",
|
||||
"historic-locomotive|@category_tourism": "Historic Locomotive",
|
||||
"historic-tank|@category_tourism": "Historic Tank",
|
||||
"historic-aircraft|@category_tourism": "Historic Aircraft",
|
||||
"historic-locomotive|@category_tourism": "4Historic locomotive",
|
||||
"historic-tank|@category_tourism": "4Historic tank",
|
||||
"historic-aircraft|@category_tourism": "4Historic aircraft",
|
||||
"historic-tomb|@category_tourism": "Tomb|grave|memorial",
|
||||
"man_made-cross": "Cross",
|
||||
"historic-wayside_cross": "Wayside cross",
|
||||
"historic-wayside_shrine": "Wayside shrine",
|
||||
"leisure-dog_park": "3Dog area|Dog park",
|
||||
"leisure-dog_park": "Dog area|3Dog park",
|
||||
"leisure-dance|@category_entertainment": "4Dance|Dancing school",
|
||||
"leisure-garden": "3Garden",
|
||||
"leisure-firepit": "5Firepit",
|
||||
"amenity-bench|amenity-bench-backless": "Bench",
|
||||
"amenity-boat_rental": "4Boat Rental|boat|3rental",
|
||||
"amenity-bicycle_rental": "4Bicycle Rental|cycle|bike|3rental|U+1F6B2|U+1F6B4|U+1F6B5|bicycle hire|bike rental",
|
||||
"amenity-bicycle_repair_station": "4Bicycle Repair Station|cycle|bike|4repair of bicycles",
|
||||
"amenity-car_sharing": "Car Share|3carsharing|car|sharing|U+1F697|U+1F698|U+1F699|carpool|carsharing services|car sharing|4rideshare",
|
||||
"amenity-car_rental": "3Car Rental|car|rental|U+1F697|U+1F698|U+1F699|car hire|rent a car|auto rental|vehicle rent",
|
||||
"amenity-motorcycle_rental": "4Motorcycle Rental|bike|hire|4scooter",
|
||||
"amenity-cinema|@category_entertainment": "3Cinema|3Movie Theatre|Film|Movies|U+1F3A6|U+1F3AC",
|
||||
"leisure-bowling_alley|@category_entertainment": "4Bowling Alley",
|
||||
"amenity-boat_rental": "4Boat rental|boat|boats|3Rental",
|
||||
"amenity-bicycle_rental": "4Bicycle rental|cycling|cycle|bike|3Rental|U+1F6B2|U+1F6B4|U+1F6B5|bicycle hire|bike rental",
|
||||
"amenity-bicycle_repair_station": "4Bicycle repair station|cycle|bike|4repair of bicycles",
|
||||
"amenity-car_sharing": "Car Share|3carsharing|car|sharing|U+1F697|U+1F698|U+1F699|carsharing services|car sharing|4rideshare",
|
||||
"amenity-car_rental": "3Car rental|car|rental|U+1F697|U+1F698|U+1F699|car hire|rent a car|auto rental|vehicle rent",
|
||||
"amenity-motorcycle_rental": "4Motorcycle rental|bike|hire|4scooter|4Rental motorcycles|motorcycles",
|
||||
"amenity-cinema|@category_entertainment": "3Cinema|3Movie theatre|Film|4Movies|U+1F3A6|U+1F3AC",
|
||||
"leisure-bowling_alley|@category_entertainment": "4Bowling alley",
|
||||
"amenity-theatre|@category_entertainment": "4Theatre|U+1F3AD",
|
||||
"amenity-nightclub|@category_entertainment|@category_nightlife": "3Nightclub|night club|4disco|dance|U+1F378|U+1F379|U+1F46F|U+1F483|club|nightspot|night bar",
|
||||
"amenity-brothel": "Brothel|whorehouse|bordello|U+1F3E9",
|
||||
@@ -166,10 +166,10 @@
|
||||
"healthcare-psychotherapist": "Psychotherapist",
|
||||
"healthcare-sample_collection": "Sample collection",
|
||||
"healthcare-speech_therapist": "Logopedics|Speech therapist|Speech therapy",
|
||||
"amenity-hunting_stand": "Hunting Stand",
|
||||
"amenity-hunting_stand": "4Hunting stand",
|
||||
"amenity-kindergarten": "5Kindergarten|U+1F476|U+1F37C|U+1F6BC|nursery|4Child Care|childcare",
|
||||
"amenity-library": "3Library|U+1F4D6",
|
||||
"amenity-parking|amenity-parking_entrance|@category_parking": "U+1F697|U+1F17F|U+1F698|U+1F699",
|
||||
"amenity-library": "3Library|3books|book|U+1F4D6",
|
||||
"amenity-parking|amenity-parking_entrance|@category_parking": "car parking|U+1F697|U+1F17F|U+1F698|U+1F699",
|
||||
"@category_pharmacy": "3Pharmacy",
|
||||
"amenity-pharmacy|@category_pharmacy": "4Drugstore|apothecary|4dispensary|U+1F489|U+1F48A",
|
||||
"@category_post": "3Post",
|
||||
@@ -192,15 +192,15 @@
|
||||
"recycling-shoes|@category_recycling": "4Recycling of Shoes|Shoes Recycling|Donate Shoes|Shoes",
|
||||
"recycling-green_waste|@category_recycling": "4Recycling of Green Waste|5Organic Waste Recycling|5Green Waste Recycling|Food Waste|Garden Waste",
|
||||
"recycling-cartons|@category_recycling": "4Recycling of Bewerage Cartons|5Cartons Recycling|5Bewerage Cartons Recycling|Cartons",
|
||||
"amenity-sanitary_dump_station|@category_rv": "2RV Dump Station|5Holding Tank Dump Station|4Dump Station|sanitary dump station|sewage|RV waste|5motorhome dump station|5camper dump station|4caravan dump station",
|
||||
"amenity-sanitary_dump_station|@category_rv": "2RV Dump Station|5Holding Tank Dump Station|4Dump station|sanitary dump station|sewage|RV waste|5motorhome dump station|5camper dump station|4caravan dump station",
|
||||
"amenity-school": "3School|U+1F392|U+1F3EB",
|
||||
"amenity-shelter": "4Shelter|refuge",
|
||||
"amenity-shelter-basic_hut": "3Bivouac Hut|Bivvy|Bothy|Hut",
|
||||
"amenity-shelter-lean_to": "3Lean-to Shelter|4Shelter|Refuge",
|
||||
"amenity-stripclub": "Stripclub",
|
||||
"amenity-shelter-basic_hut": "basic hut|3Bivouac Hut|Bivvy|Bothy|Hut",
|
||||
"amenity-shelter-lean_to": "3Lean-to Shelter|4Shelter|Refuge|lean shelter|shelter",
|
||||
"amenity-stripclub": "Stripclub|strip club",
|
||||
"amenity-telephone": "2Phone|U+260E|U+1F4DE|5Telephone",
|
||||
"@category_toilet": "3Toilet",
|
||||
"amenity-toilets|toilets-yes|@category_toilet": "wc|5restroom|4bathroom|loo|lavatory|U+1F6BD|U+1F6BE|U+1F4A9|U+1F6BB|U+1F6B9|U+1F6BA",
|
||||
"@category_toilet": "3Toilet|toilets|4Restroom|potty|WC|water closet",
|
||||
"amenity-toilets|toilets-yes|@category_toilet": "wc|4Bathroom|loo|lavatory|U+1F6BD|U+1F6BE|U+1F4A9|U+1F6BB|U+1F6B9|U+1F6BA",
|
||||
"amenity-university": "4University|U+1F393|Uni",
|
||||
"place-continent": "Continent|U+1F30D|U+1F30E|U+1F30F",
|
||||
"place-country": "Country",
|
||||
@@ -212,8 +212,8 @@
|
||||
"place-region": "Region",
|
||||
"place-island|place-islet": "Island|islet",
|
||||
"place-suburb|place-quarter|place-neighbourhood|landuse-residential": "Suburb|district|quarter|neighbourhood|neighborhood|Residential Area",
|
||||
"place-hamlet": "Hamlet|village",
|
||||
"place-village": "Village|hamlet",
|
||||
"place-hamlet": "Hamlet|village|settlement|civilization",
|
||||
"place-village": "Village|hamlet|settlement|civilization",
|
||||
"place-locality": "Locality",
|
||||
"place-farm": "Farm|U+1F411|U+1F414|U+1F417|U+1F42E|U+1F404|U+1F430|U+1F407|U+1F40F|U+1F410|U+1F413|U+1F424|U+1F437|U+1F43D|U+1F69C",
|
||||
"highway-raceway": "Racetrack|U+1F3C1",
|
||||
@@ -233,18 +233,18 @@
|
||||
"tourism-guest_house|@category_hotel": "4Guest House|hostel|U+1F3E8",
|
||||
"tourism-motel|@category_hotel": "3Motel|hostel|U+1F3E8",
|
||||
"tourism-alpine_hut|@category_hotel": "5Mountain Lodge|5backcountry hut|hut|lodge|alpine hut",
|
||||
"shop-hairdresser": "3Hairdresser|U+2702|U+1F488|hair salon|hairdressing saloon|barbershop|hair cuttery|haircut|beauty parlor|coloring",
|
||||
"aeroway-aerodrome": "3Airport|3plane|U+2708",
|
||||
"leisure-stadium": "4Stadium|4sport|U+26BD|U+26BE|U+1F3BE|U+1F3C0|U+1F3C8|U+1F4AA|U+1F3C9|olympic stadium|sports stadium|sports complex|arena",
|
||||
"shop-hairdresser": "3Hairdresser|U+2702|U+1F488|hair salon|hairdressing saloon|4barbershop|barber|hair cuttery|haircut|beauty parlor|coloring",
|
||||
"aeroway-aerodrome": "4Aerodrome|3Airport|3plane|U+2708",
|
||||
"leisure-stadium": "4Stadium|4sport|U+26BD|U+26BE|U+1F3BE|U+1F3C0|U+1F3C8|U+1F4AA|U+1F3C9|olympic stadium|sports stadium|sports complex|arena|sports arena",
|
||||
"leisure-playground|@category_children": "4Playground",
|
||||
"leisure-sports_centre|leisure-sports_centre-sport-american_football|leisure-sports_centre-sport-archery|leisure-sports_centre-sport-athletics|leisure-sports_centre-sport-australian_football|leisure-sports_centre-sport-badminton|leisure-sports_centre-sport-baseball|leisure-sports_centre-sport-basketball|leisure-sports_centre-sport-beachvolleyball|leisure-sports_centre-sport-bowls|leisure-sports_centre-sport-climbing|leisure-sports_centre-sport-cricket|leisure-sports_centre-sport-curling|leisure-sports_centre-sport-equestrian|leisure-sports_centre-sport-field_hockey|leisure-sports_centre-sport-futsal|leisure-sports_centre-sport-golf|leisure-sports_centre-sport-gymnastics|leisure-sports_centre-sport-handball|leisure-sports_centre-sport-ice_hockey|leisure-sports_centre-sport-multi|leisure-sports_centre-sport-padel|leisure-sports_centre-sport-pelota|leisure-sports_centre-sport-scuba_diving|leisure-sports_centre-sport-shooting|leisure-sports_centre-sport-skateboard|leisure-sports_centre-sport-skiing|leisure-sports_centre-sport-soccer|leisure-sports_centre-sport-table_tennis|leisure-sports_centre-sport-tennis|leisure-sports_centre-sport-volleyball|leisure-sports_centre-sport-yoga": "4Sports Center|sport|U+26BD|U+26BE|U+1F3BE|U+1F4AA|U+1F3C8|U+1F3C0|U+1F3C9|sports complex|sports forum",
|
||||
"leisure-sports_centre|leisure-sports_centre-sport-american_football|leisure-sports_centre-sport-archery|leisure-sports_centre-sport-athletics|leisure-sports_centre-sport-australian_football|leisure-sports_centre-sport-badminton|leisure-sports_centre-sport-baseball|leisure-sports_centre-sport-basketball|leisure-sports_centre-sport-beachvolleyball|leisure-sports_centre-sport-bowls|leisure-sports_centre-sport-climbing|leisure-sports_centre-sport-cricket|leisure-sports_centre-sport-curling|leisure-sports_centre-sport-equestrian|leisure-sports_centre-sport-field_hockey|leisure-sports_centre-sport-futsal|leisure-sports_centre-sport-golf|leisure-sports_centre-sport-gymnastics|leisure-sports_centre-sport-handball|leisure-sports_centre-sport-ice_hockey|leisure-sports_centre-sport-multi|leisure-sports_centre-sport-padel|leisure-sports_centre-sport-pelota|leisure-sports_centre-sport-scuba_diving|leisure-sports_centre-sport-shooting|leisure-sports_centre-sport-skateboard|leisure-sports_centre-sport-skiing|leisure-sports_centre-sport-soccer|leisure-sports_centre-sport-table_tennis|leisure-sports_centre-sport-tennis|leisure-sports_centre-sport-volleyball|leisure-sports_centre-sport-yoga": "4Sports Center|sport|sports|U+26BD|U+26BE|U+1F3BE|U+1F4AA|U+1F3C8|U+1F3C0|U+1F3C9|sports complex|sports forum",
|
||||
"leisure-sports_centre-sport-swimming": "4Swimmming Centre",
|
||||
"leisure-golf_course": "Golf Course|U+26F3",
|
||||
"leisure-golf_course": "4Golf Course|golf|U+26F3",
|
||||
"leisure-miniature_golf": "4Minigolf|Miniature Golf|Putt Putt|mini golf|mini-golf",
|
||||
"leisure-escape_game": "4Escape Room|Escape Game|quest",
|
||||
"leisure-hackerspace": "Hackerspace",
|
||||
"leisure-pitch": "4Sports Ground|sport|U+26BD|U+26BE|U+1F3BE|U+1F3C0|U+1F3C8|U+1F3C9|U+1F3C3",
|
||||
"leisure-swimming_pool": "4Swimming Pool|sport|U+1F3CA",
|
||||
"leisure-hackerspace": "6Hackerspace|hacker space|hacklab|hackspace|5makerspace",
|
||||
"leisure-pitch": "4Sports Ground|sport|sports|U+26BD|U+26BE|U+1F3BE|U+1F3C0|U+1F3C8|U+1F3C9|U+1F3C3",
|
||||
"leisure-swimming_pool": "4Swimming Pool|sport|sports|U+1F3CA",
|
||||
"leisure-swimming_pool-private": "DoNotMatchThisType_OneLanguageDefinitionIsEnoughHere",
|
||||
"sport-american_football": "American Football",
|
||||
"sport-archery": "Archery",
|
||||
@@ -276,16 +276,16 @@
|
||||
"building": "Building|U+1F3E0|U+1F3E1|U+1F3E2",
|
||||
"building-address": "Address",
|
||||
"@category_police": "4Police|cops",
|
||||
"amenity-police|@category_police": "U+1F693|U+1F46E|U+1F694|U+1F482|U+1F6A8",
|
||||
"office-diplomatic": "4Embassy",
|
||||
"amenity-police|@category_police": "Police station|U+1F693|U+1F46E|U+1F694|U+1F482|U+1F6A8",
|
||||
"office-diplomatic": "4Embassy|5Consulate",
|
||||
"natural-bay": "Bay",
|
||||
"@category_water": "3Water|water source",
|
||||
"amenity-drinking_water|drinking_water-yes|@category_water": "4Drinking Water|3Potable Water|U+1F6B0",
|
||||
"natural-hot_spring|@category_water": "3Hot Spring",
|
||||
"natural-spring|@category_water": "3Spring|4Natural Spring",
|
||||
"man_made-water_well|@category_water": "Water Well",
|
||||
"amenity-water_point|@category_water|@category_rv": "Water Tank Refill Point|2RV Water Point|water for rv|water for campervan|water for caravan",
|
||||
"man_made-water_tap|@category_water": "Water Tap",
|
||||
"amenity-water_point|@category_water|@category_rv": "5Water tank refill point|2RV water roint|water for rv|water for campervan|water for caravan",
|
||||
"man_made-water_tap|@category_water": "5Water tap",
|
||||
"@waterbody": "Water body|water surface",
|
||||
"natural-water|@waterbody": "",
|
||||
"natural-water-basin|landuse-basin|@waterbody": "Basin",
|
||||
@@ -294,18 +294,18 @@
|
||||
"natural-water-reservoir|landuse-reservoir|@waterbody": "5Reservoir",
|
||||
"waterway-river|waterway-stream|natural-water-river": "River|stream|creek|brook",
|
||||
"waterway-canal": "Canal",
|
||||
"shop-car_repair": "3Car Repair Workshop|4service station|auto|garage|4mechanic|U+1F527",
|
||||
"tourism-camp_site|@category_hotel": "4Camping|campsite|campground|4tent spot|U+26FA",
|
||||
"shop-car_repair": "3Car Repair Workshop|4service station|auto|garage|4mechanic|4Repair car|U+1F527",
|
||||
"tourism-camp_site|@category_hotel": "4Camping|campsite|campground|4Tent spot|U+26FA",
|
||||
"tourism-caravan_site|@category_rv||@category_hotel": "2RV Park|4Caravan Site|RV site|U+1F69A|U+26FA|U+1F69B",
|
||||
"office": "Office|company|U+1F454|U+1F4BC|U+1F3E2|bureau|administrative office|firm|business|corporation",
|
||||
"office-company": "Company Office",
|
||||
"office-government": "Government Office",
|
||||
"office-lawyer": "3Lawyer|advocate|attorney|4barrister|counsel|councellor|4solicitor",
|
||||
"office-telecommunication": "Telecom Company|telecommunications",
|
||||
"office-government": "6Government office",
|
||||
"office-lawyer": "3Lawyer|advocate|attorney|4Barrister|counsel|councellor|4Solicitor",
|
||||
"office-telecommunication": "Telecom Company|6Telecommunication office",
|
||||
"craft-beekeeper": "Beekeeper",
|
||||
"craft-blacksmith": "Blacksmith",
|
||||
"craft-brewery": "Craft brewery|4Brewery|brew house|beer|beer bar|craft beer",
|
||||
"craft-caterer": "Caterer",
|
||||
"craft-caterer": "4Caterer",
|
||||
"craft-carpenter": "4Carpenter",
|
||||
"craft-confectionery": "Confectionery|Confectioner",
|
||||
"craft-electrician": "4Electrician",
|
||||
@@ -313,69 +313,69 @@
|
||||
"craft-gardener": "Gardener",
|
||||
"craft-grinding_mill": "Grinding Mill|Mill",
|
||||
"craft-handicraft": "Handicraft",
|
||||
"craft-hvac": "HVAC",
|
||||
"craft-hvac": "3HVAC|AC|aircon|heating|air conditioner|ventilation|climate|climatization",
|
||||
"craft-metal_construction": "5Metal Worker",
|
||||
"craft-key_cutter": "4Key Cutting|Key Duplication|Key Copying",
|
||||
"craft-key_cutter": "4Key cutting|Key duplication|Key copying",
|
||||
"craft-locksmith": "Locksmith",
|
||||
"craft-painter": "House Painter|painter|decorator",
|
||||
"craft-photographer": "4Photographer|photography Studio",
|
||||
"craft-plumber": "Plumber",
|
||||
"craft-plumber": "4Plumber",
|
||||
"craft-sawmill": "Sawmill",
|
||||
"craft-shoemaker": "4Shoe Repair|shoe maker",
|
||||
"craft-winery": "4Winery|Wine",
|
||||
"craft-winery": "Winery|Wine",
|
||||
"craft-tailor": "4Tailor|clothes alteration|alterations",
|
||||
"area:highway-footway|area:highway-pedestrian|area:highway-steps|place-square": "Square",
|
||||
"place-sea": "Sea|U+1F30A",
|
||||
"place-ocean": "Ocean|U+1F30A",
|
||||
"@category_wifi": "WiFi|Wi-Fi",
|
||||
"@category_wifi": "WiFi|Wi-Fi|WLAN",
|
||||
"internet_access|internet_access-wlan|@category_wifi": "3Internet|U+1F4F6",
|
||||
"natural-beach|natural-beach-sand|natural-beach-gravel|leisure-beach_resort": "Beach|U+1F459",
|
||||
"man_made-lighthouse": "Lighthouse",
|
||||
"man_made-lighthouse": "5Lighthouse",
|
||||
"man_made-survey_point": "4Survey Point|survey marker|survey benchmark|4geodetic mark|geodetic vertex|4triangulation station|4trigonometrical point|trig point|trig pillar|4trig station|trig beacon|trig",
|
||||
"man_made-flagpole": "Flagpole",
|
||||
"man_made-flagpole": "4Flagpole",
|
||||
"man_made-mast": "Mast|pole",
|
||||
"man_made-communications_tower|man_made-tower-communication": "Communications Tower|cell tower|cellular tower|mast",
|
||||
"man_made-petroleum_well": "Petroleum Well|Oil Well|Boring",
|
||||
"man_made-petroleum_well": "7Petroleum Well|Oil Well|Boring",
|
||||
"organic-only|organic-yes": "4organic|bio|biological|eco|ecological|healthy",
|
||||
"shop-copyshop": "4Copyshop|copy shop|4printing|4photocopy",
|
||||
"shop-photo|@shop": "4Photo|frames",
|
||||
"shop-camera|@shop": "3Camera",
|
||||
"shop-camera|@shop": "3Camera|cameras|photography",
|
||||
"shop-travel_agency": "4Travel Agency|tours|4tour agency|trips|journeys|travel bureau|holidays|travel agent|tourist office|last minute tour",
|
||||
"shop-outdoor|@shop": "4Outdoor Equipment|trekking|hiking|climbing|camping",
|
||||
"shop-dry_cleaning": "3Dry Cleaner|cleaning",
|
||||
"shop-tyres|@shop": "3Tyre|tyres",
|
||||
"shop-tyres|@shop": "3Tyre|tyres|tyre shop|3Tires|tire|tire shop",
|
||||
"amenity-car_wash": "3Car Wash",
|
||||
"man_made-telescope|man_made-telescope-optical|man_made-telescope-radio|man_made-telescope-gamma": "5Telescope",
|
||||
"man_made-telescope|man_made-telescope-optical|man_made-telescope-radio|man_made-telescope-gamma": "4Telescope",
|
||||
"man_made-observatory": "4Observatory",
|
||||
"amenity-veterinary": "Veterinary Doctor|4veterinary",
|
||||
"amenity-animal_shelter": "Animal Shelter",
|
||||
"amenity-veterinary": "4Veterinary Doctor|3Veterinary|vet|veterinarian",
|
||||
"amenity-animal_shelter": "6Animal Shelter",
|
||||
"@charging_station": "4Charging Station|charging",
|
||||
"amenity-charging_station|@charging_station": "",
|
||||
"amenity-charging_station-bicycle|@charging_station": "4Bicycle Charging|4Bike Charging",
|
||||
"amenity-charging_station-motorcar|amenity-charging_station-motorcar-small|@charging_station": "4Motorcar Charging|3Car Charging|Charger",
|
||||
"amenity-childcare": "Nursery|4Child Care|childcare",
|
||||
"amenity-bicycle_parking": "4Bicycle Parking|4Bike Parking",
|
||||
"amenity-waste_basket": "4Trash Bin|4litter bin|waste basket",
|
||||
"amenity-waste_basket": "4Trash Bin|4litter bin|5waste basket|bin",
|
||||
"emergency-phone": "4Emergency Phone",
|
||||
"leisure-fitness_centre": "3Fitness Centre|gym|U+1F4AA|fitness|workout|fitness gym|fitness club|health club|fitness studio|workout studio",
|
||||
"leisure-fitness_centre": "3Fitness Centre|gym|U+1F4AA|fitness|workout|fitness gym|fitness club|health club|fitness studio|workout studio|sport|sports",
|
||||
"leisure-sauna": "3Sauna|sweatbath|sweat lodge|steam room|steam sauna|sauna room",
|
||||
"shop-car_repair-tyres|shop-car_repair": "3Tyre Repair|tyres|4puncture repair|tyre puncture repair|flat tyre repair|tyre replacement",
|
||||
"shop-chemist|@shop": "4Chemist|Pharmacist",
|
||||
"shop-pet|@shop": "3Pet",
|
||||
"tourism-zoo|@category_tourism|@category_children": "2Zoo",
|
||||
"attraction-animal": "Animal Enclosure",
|
||||
"tourism-information-office|amenity-ranger_station|@category_tourism": "4Tourist Office",
|
||||
"tourism-information-visitor_centre|amenity-ranger_station|@category_tourism": "3Visitor Centre",
|
||||
"amenity-community_centre": "4Community Centre",
|
||||
"amenity-compressed_air": "Compressed Air",
|
||||
"tourism-information-office|amenity-ranger_station|@category_tourism": "4Tourism office|6Ranger station",
|
||||
"tourism-information-visitor_centre|amenity-ranger_station|@category_tourism": "3Visitor centre|6Ranger station",
|
||||
"amenity-community_centre": "4Community centre",
|
||||
"amenity-compressed_air": "6Compressed air",
|
||||
"amenity-courthouse": "4Courthouse",
|
||||
"amenity-vending_machine-cigarettes": "4Cigarette Dispenser",
|
||||
"amenity-vending_machine-coffee": "4Coffee Dispenser|Coffee",
|
||||
"amenity-vending_machine-condoms": "4Condoms Dispenser|Condoms|Condomat",
|
||||
"amenity-vending_machine-drinks": "4Drinks Dispenser|4Beverages",
|
||||
"amenity-vending_machine-food|@category_food": "4Food Dispenser|Food|Snacks",
|
||||
"amenity-vending_machine-parking_tickets|@category_parking": "4Parking Tickets|3Pay and Display|Parkomat|Parking Meter",
|
||||
"amenity-vending_machine-public_transport_tickets|@category_transport": "Ticket Machine|Transport Tickets|Tickets",
|
||||
"amenity-vending_machine-cigarettes": "4Cigarette dispenser",
|
||||
"amenity-vending_machine-coffee": "4Coffee dispenser|Coffee",
|
||||
"amenity-vending_machine-condoms": "4Condoms dispenser|Condoms|Condomat",
|
||||
"amenity-vending_machine-drinks": "4Drinks dispenser|4Beverages",
|
||||
"amenity-vending_machine-food|@category_food": "4Food dispenser|Food|Snacks",
|
||||
"amenity-vending_machine-parking_tickets|@category_parking": "4Parking tickets|3Pay and Display|Parkomat|Parking Meter",
|
||||
"amenity-vending_machine-public_transport_tickets|@category_transport": "6Ticket machine|Transport Tickets|Tickets|4Fare machine|Bus tickets|Train tickets|Ticketing",
|
||||
"amenity-vending_machine-newspapers": "4Newspaper Dispenser|Newspapers",
|
||||
"amenity-vending_machine-sweets": "4Sweets Dispenser|Sweets|4Candies|Lollies",
|
||||
"amenity-vending_machine-excrement_bags": "5Excrement Bags Dispenser|4Poop Bags|3Dog Poop Bags|Animal Waste",
|
||||
@@ -383,61 +383,62 @@
|
||||
"shop-outpost": "4Pickup Point|4Parcel Pickup",
|
||||
"amenity-vending_machine-fuel|@category_fuel": "Fuel Dispenser|Gas Pump",
|
||||
"building-garage": "Garage",
|
||||
"highway-rest_area|highway-services": "4Rest Area|4Service Area|station",
|
||||
"highway-rest_area|highway-services": "4Rest area|4Service area|station",
|
||||
"man_made-chimney": "Chimney",
|
||||
"man_made-crane": "Crane",
|
||||
"man_made-tower|man_made-flare": "Tower",
|
||||
"shop-bookmaker|@gambling": "Bookmaker",
|
||||
"shop-bookmaker|@gambling": "4Bookmaker",
|
||||
"shop-seafood|@category_food|@shop": "4Fishmonger|4Seafood|fish market|fish|shellfish|marine",
|
||||
"shop-second_hand|@category_shopping|@shop|@category_secondhand": "Thrift|Flea market",
|
||||
"shop-charity|@shop|@category_secondhand": "4Charity",
|
||||
"shop-ticket": "4Ticket Shop|tickets|booking",
|
||||
"shop-wine|@category_food|@shop": "4Wine|Winery",
|
||||
"shop-second_hand|@category_shopping|@shop|@category_secondhand": "Thrift|4Thrift store|Flea market",
|
||||
"shop-charity|@shop|@category_secondhand": "4Charity|charity shop",
|
||||
"shop-ticket": "4Ticket Shop|tickets|ticket|booking",
|
||||
"shop-wine|@category_food|@shop": "Wine|Winery",
|
||||
"shop-car_parts|@shop": "3Car Parts|4Auto Parts",
|
||||
"tourism-chalet|@category_hotel": "5Holiday Cottage|5vacation home",
|
||||
"tourism-chalet|@category_hotel": "5Holiday Cottage|5vacation home|4Chalet",
|
||||
"tourism-information-board": "Information Board",
|
||||
"tourism-information-map": "Tourist Map",
|
||||
"aerialway-station": "Aerialway Station|Cable Car Station",
|
||||
"aeroway-helipad": "Helipad",
|
||||
"tourism-information-map": "Tourist map|map|4Information",
|
||||
"aerialway-station": "Aerialway Station|5Cable car station",
|
||||
"aeroway-helipad": "4Helipad",
|
||||
"barrier-border_control": "4Border Control",
|
||||
"leisure-water_park|@category_tourism|@category_children": "Water Park|3aqua park",
|
||||
"man_made-water_tower": "Water Tower",
|
||||
"man_made-windmill": "Windmill",
|
||||
"man_made-windmill": "4Windmill",
|
||||
"natural-cave_entrance": "Cave",
|
||||
"natural-volcano|@mountain": "4Volcano",
|
||||
"office-estate_agent": "4Estate Agent|Realtor|4Real Estate",
|
||||
"waterway-lock_gate": "Lock Gate",
|
||||
"amenity-public_bookcase": "4Book Exchange|Book swap",
|
||||
"sport-climbing": "4Climbing Centre",
|
||||
"amenity-public_bookcase": "4Book Exchange|Book swap|book|books|public bookcase|bookcase|free library|street library|sidewalk library",
|
||||
"sport-climbing": "4Climbing Centre|climbing",
|
||||
"sport-yoga": "Yoga",
|
||||
"leisure-fitness_centre-sport-yoga": "Yoga Studio",
|
||||
"tourism-apartment|@category_hotel": "4Holiday Apartment",
|
||||
"leisure-resort|@category_hotel": "Resort",
|
||||
"amenity-biergarten|@category_eat|@category_nightlife": "5Biergarten",
|
||||
"amenity-driving_school": "4Driving School",
|
||||
"amenity-music_school": "Music School",
|
||||
"amenity-language_school": "Language School",
|
||||
"amenity-ice_cream": "3Ice Cream|Gelato",
|
||||
"amenity-internet_cafe": "3Internet Cafe",
|
||||
"amenity-driving_school": "4Driving school",
|
||||
"amenity-music_school": "4Music school",
|
||||
"amenity-language_school": "4Language school",
|
||||
"amenity-ice_cream": "3Ice cream|Gelato",
|
||||
"amenity-internet_cafe": "3Internet Cafe|5Cybercafé",
|
||||
"amenity-motorcycle_parking": "4Motorcycle Parking",
|
||||
"amenity-parking_space-disabled|@category_parking": "Disabled Parking Space",
|
||||
"amenity-car_pooling|@category_parking": "Car Pooling",
|
||||
"amenity-parking_space-disabled|@category_parking": "4Disabled parking space",
|
||||
"amenity-car_pooling|@category_parking": "4Carpooling|car pooling",
|
||||
"amenity-nursing_home": "4Nursing Home",
|
||||
"amenity-payment_terminal": "Payment Terminal",
|
||||
"amenity-payment_centre": "Payment Centre",
|
||||
"amenity-public_bath": "Public Bath",
|
||||
"amenity-payment_terminal": "3Payment Terminal",
|
||||
"amenity-payment_centre": "3Payment Centre",
|
||||
"amenity-public_bath": "6Public bath",
|
||||
"amenity-shower": "Shower",
|
||||
"emergency-access_point": "5Emergency Rescue Point|Emergency Location|Emergency Marker|Emergency Access Point",
|
||||
"emergency-assembly_point": "Emergency Assembly Point",
|
||||
"emergency-assembly_point": "5Emergency assembly point",
|
||||
"emergency-life_ring": "5Lifebuoy|6Life Ring|life-ring|lifering|flotation device|floatation device",
|
||||
"emergency-defibrillator": "4Defibrillator|AED",
|
||||
"emergency-fire_hydrant": "4Fire Hydrant|Fire Plug",
|
||||
"emergency-lifeguard": "Lifeguard|Lifesaver",
|
||||
"emergency-mountain_rescue": "Mountain Rescue Station|Search and Rescue",
|
||||
"leisure-fitness_station": "3Fitness Station|street workout",
|
||||
"emergency-mountain_rescue": "Mountain Rescue Station|Search and Rescue|rescue",
|
||||
"leisure-fitness_station": "3Fitness Station|street workout|fitness|workout|4Exercise station|Exercise bench|outdoor gym|5Calisthenics park|trim trail",
|
||||
"office-insurance": "4Insurance Office",
|
||||
"office-ngo": "4Non-Governmental Organization|NGO",
|
||||
"shop-erotic|@shop": "4Erotic|4Adult|3Sex",
|
||||
"shop-beauty-day_spa": "4Day Spa|spa|wellness",
|
||||
"shop-massage": "Massage salon|Massage Parlour|4massage|spa|massage center|massage therapy|massage services|spa treatment|spa services",
|
||||
"shop-motorcycle|@shop": "4Motorcycle",
|
||||
"shop-motorcycle_repair": "4Motorcycle Repair",
|
||||
@@ -445,14 +446,14 @@
|
||||
"shop-pawnbroker": "4Pawnbroker",
|
||||
"shop-stationery|@shop": "5Stationery",
|
||||
"shop-tattoo": "Tattoo Parlour|4tattoos",
|
||||
"shop-variety_store|@category_shopping|@shop": "Variety",
|
||||
"shop-video|@shop": "4Video|3DVD",
|
||||
"shop-video_games|@shop": "Video games|4videogames|video games|videogames|U+1F47E|U+1F579|U+1F3AE",
|
||||
"shop-variety_store|@category_shopping|@shop": "4Variety|6Dollar store|5Pound shop|5Five and dime",
|
||||
"shop-video|@shop": "4Video|3DVD|videoshop|5video shop|video rental|video rental shop|video rental store",
|
||||
"shop-video_games|@shop": "Video games|4videogames|video games|videogames|gaming|games|U+1F47E|U+1F579|U+1F3AE",
|
||||
"tourism-wilderness_hut|@category_hotel": "4Wilderness Hut|5backcountry hut|hut|mountain hut|bothy|bivvy",
|
||||
"tourism-gallery|@category_tourism": "3Art Gallery|3Gallery|museum",
|
||||
"tourism-theme_park|@category_tourism|@category_children": "Theme park|Amusement park",
|
||||
"boundary-national_park|@category_tourism": "National Park",
|
||||
"leisure-nature_reserve|@category_tourism": "Nature reserve",
|
||||
"tourism-theme_park|@category_tourism|@category_children": "5Theme park|Amusement park",
|
||||
"boundary-national_park|@category_tourism": "5National Park",
|
||||
"leisure-nature_reserve|@category_tourism": "4Nature reserve",
|
||||
"natural-cape": "Cape",
|
||||
"natural-geyser": "3Geyser",
|
||||
"natural-glacier|@category_tourism": "Glacier",
|
||||
@@ -461,31 +462,31 @@
|
||||
"leisure-indoor_play": "3Indoor Play Centre|indoor play|indoor playground",
|
||||
"piste:type-downhill|piste:type-nordic": "Skiing|3Ski run|4Piste",
|
||||
"amenity-events_venue": "Events Venue",
|
||||
"shop-chocolate|@category_food|@shop": "Chocolate",
|
||||
"shop-chocolate|@category_food|@shop": "5Chocolate",
|
||||
"shop-coffee|@category_food|@shop": "Coffee Retailer|Coffee",
|
||||
"shop-fabric|@shop": "Fabric",
|
||||
"shop-money_lender": "Money lender",
|
||||
"shop-music|@shop": "Record|vinyl|Music",
|
||||
"shop-musical_instrument|@shop": "Musical instruments",
|
||||
"shop-money_lender": "5Money lender",
|
||||
"shop-music|@shop": "Record|4vinyl|Music|6Record store",
|
||||
"shop-musical_instrument|@shop": "7Musical instruments|instruments|guitar|guitars",
|
||||
"shop-tea|@shop": "Tea",
|
||||
"shop-telecommunication|@shop": "Telecommunication",
|
||||
"shop-antiques|@category_shopping|@shop|@category_secondhand": "Antiques",
|
||||
"shop-telecommunication|@shop": "6Telecommunications shop|Telecommunications|telecom",
|
||||
"shop-antiques|@category_shopping|@shop|@category_secondhand": "5Antiques",
|
||||
"shop-art|@category_shopping|@shop": "3Artwork|Arts",
|
||||
"shop-baby_goods|@category_children|@shop": "Baby Goods",
|
||||
"shop-baby_goods|@category_children|@shop": "4Baby Goods",
|
||||
"shop-bag|@category_shopping|@shop": "Bags",
|
||||
"shop-cheese|@category_food|@shop": "Cheese",
|
||||
"shop-dairy|@category_food|@shop": "Dairy Products",
|
||||
"shop-electrical|@shop": "Electrical Supplies|Electrical|U+1F50B|U+1F50C|U+1F4A1|U+1F526",
|
||||
"shop-fishing|@shop": "Fishing",
|
||||
"shop-interior_decoration|@shop": "Interior Decorations",
|
||||
"shop-interior_decoration|@shop": "6Interior decorations|interior design",
|
||||
"shop-lighting|@shop": "4Lighting|Lighting fixtures|4Lamps",
|
||||
"shop-lottery|@gambling": "Lottery Tickets",
|
||||
"shop-medical_supply|@shop": "Medical Supplies",
|
||||
"shop-nutrition_supplements|@shop": "Nutrition Supplements",
|
||||
"shop-medical_supply|@shop": "7Medical supplies",
|
||||
"shop-nutrition_supplements|@shop": "9Nutrition supplements",
|
||||
"shop-paint|@shop": "Paints",
|
||||
"shop-perfumery|@category_shopping|@shop": "Perfumery",
|
||||
"shop-sewing|@shop": "3Sewing Supplies|4Haberdashery",
|
||||
"shop-storage_rental": "Storage Rental",
|
||||
"shop-perfumery|@category_shopping|@shop": "5Perfumery|perfume|perfumes",
|
||||
"shop-sewing|@shop": "3Sewing supplies|4Haberdashery",
|
||||
"shop-storage_rental": "5Storage rental|4Rent storage",
|
||||
"shop-tobacco|@shop": "Smoke|Tobacco",
|
||||
"shop-trade|@shop": "Trades Supplies|Trade Supplies",
|
||||
"shop-watches|@category_shopping|@shop": "Watches",
|
||||
@@ -496,35 +497,35 @@
|
||||
"shop-auction|@category_secondhand": "4Auction|Auctioneer|Auction House",
|
||||
"shop-collector|@category_shopping|@category_secondhand": "Collectables|Collector",
|
||||
"man_made-cairn": "4Cairn",
|
||||
"wheelchair-yes": "5Wheelchair",
|
||||
"amenity-social_facility": "Social Facility",
|
||||
"wheelchair-yes": "5Wheelchair|accessible|accessibility|5Handicap accessible",
|
||||
"amenity-social_facility": "Social Facility|social|group home|nursing home|assisted living|drug clinic|halfway house|disabled workshop|job center|homeless shelter",
|
||||
"social_facility-soup_kitchen": "4Soup Kitchen|Food",
|
||||
"social_facility-food_bank": "4Food Bank|foodbank|Food",
|
||||
"amenity-food_sharing": "Food Sharing|Food",
|
||||
"amenity-give_box": "Give Box",
|
||||
"social_facility-food_bank": "4Food Bank|foodbank|Food|donate|Free pantry|Free fridge",
|
||||
"amenity-food_sharing": "Food Sharing|Food|donate",
|
||||
"amenity-give_box": "Give Box|donate",
|
||||
"leisure-sports_hall": "Sports hall",
|
||||
"amenity-arts_centre|@category_tourism": "Arts Center",
|
||||
"amenity-prison": "prison",
|
||||
"amenity-exhibition_centre": "Exhibition Center",
|
||||
"shop-bathroom_furnishing|@shop": "Bathroom Furnishings",
|
||||
"shop-bed|@shop": "Bed Shop",
|
||||
"shop-boutique|@shop": "Boutique",
|
||||
"amenity-food_court": "Food Court",
|
||||
"shop-curtain|@shop": "Curtain Shop",
|
||||
"shop-gas|@shop": "Gas Store",
|
||||
"shop-pet_grooming": "Pet Grooming",
|
||||
"shop-hifi|@shop": "HiFi Audio Shop",
|
||||
"amenity-conference_centre": "Conference Center",
|
||||
"shop-herbalist|@shop": "Herbalist",
|
||||
"shop-appliance|@shop": "Appliance Shop",
|
||||
"shop-agrarian|@shop": "Agricultural Shop",
|
||||
"shop-fashion_accessories|@shop": "Fashion Accessories",
|
||||
"amenity-prison": "prison|jail|penitentiary|detention centre|detention center",
|
||||
"amenity-exhibition_centre": "5Exhibition Center",
|
||||
"shop-bathroom_furnishing|@shop": "9Bathroom Furnishings",
|
||||
"shop-bed|@shop": "3Bed Shop",
|
||||
"shop-boutique|@shop": "4Boutique",
|
||||
"amenity-food_court": "5Food Court",
|
||||
"shop-curtain|@shop": "5Curtain Shop",
|
||||
"shop-gas|@shop": "4Gas Store|gas shop|propane|butane|cooking gas|LNG|CNG|gas bottles",
|
||||
"shop-pet_grooming": "4Pet Grooming|groomer|dog grooming",
|
||||
"shop-hifi|@shop": "4HiFi Audio Shop",
|
||||
"amenity-conference_centre": "5Conference Center",
|
||||
"shop-herbalist|@shop": "4Herbalist",
|
||||
"shop-appliance|@shop": "4Appliance Shop|Kitchen appliances|Kitchen gallery",
|
||||
"shop-agrarian|@shop": "4Agricultural Shop|Feed store|Feed and seed|Farm supply",
|
||||
"shop-fashion_accessories|@shop": "4Fashion Accessories",
|
||||
"amenity-waste_transfer_station": "Waste Transfer Station",
|
||||
"shop-carpet|@shop": "Carpet Shop",
|
||||
"shop-craft|@shop": "Craft",
|
||||
"shop-carpet|@shop": "4Carpet Shop",
|
||||
"shop-craft|@shop": "3Craft",
|
||||
"shop-pasta|@shop": "Pasta",
|
||||
"attraction-amusement_ride|attraction-carousel|attraction-roller_coaster|attraction-maze|attraction-historic|attraction-big_wheel|attraction-bumper_car|@category_children": "Attraction|Maze",
|
||||
"amenity-luggage_locker": "Luggage|locker|storage",
|
||||
"attraction-amusement_ride|attraction-carousel|attraction-roller_coaster|attraction-maze|attraction-historic|attraction-big_wheel|attraction-bumper_car|@category_children": "Attraction|Maze|Amusement|attractions",
|
||||
"amenity-luggage_locker": "5Luggage locker|Luggage|locker|4Lockers|storage|5Coin lockers",
|
||||
"office-security": "4Security Office",
|
||||
"building-guardhouse": "4Guard"
|
||||
}
|
||||
@@ -987,7 +987,7 @@ highway|busway|tunnel;[highway=busway][tunnel?];;name;int_name;860;
|
||||
natural|salt_pond;861;landuse|salt_pond
|
||||
amenity|conference_centre;862;
|
||||
amenity|exhibition_centre;863;
|
||||
deprecated:railway|siding|tunnel:06.2023;864;x
|
||||
shop|beauty|day_spa;[shop=beauty][beauty=spa];;name;int_name;864;
|
||||
amenity|boat_rental;865;
|
||||
area:highway|footway;866;
|
||||
junction|circular;867;
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 7 and column 16.
|
1
data/styles/default/dark/symbols/day-spa-m.svg
Normal file
1
data/styles/default/dark/symbols/day-spa-m.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg height="18" viewBox="0 0 18 18" width="18" xmlns="http://www.w3.org/2000/svg"><g fill="none"><circle cx="9" cy="9" fill="#000" opacity=".6" r="9"/><circle cx="9" cy="9" fill="#6b425c" r="8.25"/><path d="m6.30055657 9.36465433.00689805.0737763c.14582844 1.17941477.67189526 2.27631057 1.56061293 3.27868287l-.00113465.0761216c-1.22761107.0592649-2.19488995-.2708693-2.90183667-.9904025-.70694671-.7195332-1.02550703-1.6981313-.95568097-2.93579437.9045588-.05286646 1.66827257.11300557 2.29114131.4976161zm7.46682273-.50627566.2232054.00865956c.0698261 1.23766307-.2487342 2.21626117-.9556809 2.93579437s-1.6742256 1.0496674-2.9018367.9904025l-.0011346-.0761216c.8887176-1.0023723 1.4147844-2.0992681 1.5606129-3.27868287l.006898-.0737763c.570963-.35255965 1.260275-.5213182 2.0679359-.50627566zm-4.7673793-4.05837867.19024281.17805949c1.17397699 1.13425665 1.76096549 2.39289765 1.76096549 3.77592299 0 1.45581612-.6504028 2.78575212-1.9512083 3.98980792-1.30080552-1.2040558-1.95120828-2.5339918-1.95120828-3.98980792 0-1.45581615.65040276-2.77381031 1.95120828-3.95398248zm-3.64250524 1.23453276c.52429331.11064075.98164792.28211324 1.37206381.51441745-.26807889.60635877-.42055963 1.24178775-.45592669 1.90388473-.3404372-.15607091-.70942568-.26527279-1.10368332-.32818887-.12186067-.63450512-.05872551-1.33159631.1875462-2.09011331zm7.28501044 0c.2462718.758517.3094069 1.45560819.1875462 2.09011331-.3942576.06291608-.7632461.17211796-1.1036833.32818887-.035367-.66209698-.1878478-1.29752596-.4559267-1.90388473.3904159-.23230421.8477705-.4037767 1.3720638-.51441745z" fill="#000" fill-rule="evenodd"/></g></svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
@@ -2107,6 +2107,8 @@ node|z17-[shop=variety_store],
|
||||
{icon-image: shop-m.svg;}
|
||||
node|z17-[shop=massage],
|
||||
{icon-image: massage_salon-m.svg;icon-min-distance: 24;}
|
||||
node|z17-[shop=beauty][beauty=spa],
|
||||
{icon-image: day-spa-m.svg;icon-min-distance: 24;}
|
||||
node|z17-[shop=money_lender],
|
||||
{icon-image: bank-m.svg;icon-min-distance: 24;}
|
||||
node|z17-[shop=pawnbroker],
|
||||
|
||||
@@ -844,6 +844,7 @@ shop-antiques # icon z16- (also has captio
|
||||
shop-appliance # icon z18- (also has caption(optional) z18-)
|
||||
shop-baby_goods # icon z18- (also has caption(optional) z18-)
|
||||
shop-beauty # icon z16- (also has caption(optional) z16-)
|
||||
shop-beauty-day_spa # icon z16- (also has caption(optional) z16-)
|
||||
shop-beverages # icon z16- (also has caption(optional) z16-)
|
||||
shop-boutique # icon z18- (also has caption(optional) z18-)
|
||||
shop-car_repair # icon z16- (also has caption(optional) z16-)
|
||||
@@ -1890,6 +1891,7 @@ leisure-swimming_pool-private # icon z17- (also has captio
|
||||
# shop-appliance # caption(optional) z18- (also has icon z18-)
|
||||
# shop-baby_goods # caption(optional) z18- (also has icon z18-)
|
||||
# shop-beauty # caption(optional) z16- (also has icon z16-)
|
||||
# shop-beauty-day_spa # caption(optional) z16- (also has icon z16-)
|
||||
# shop-beverages # caption(optional) z16- (also has icon z16-)
|
||||
# shop-boutique # caption(optional) z18- (also has icon z18-)
|
||||
# shop-car_repair # caption(optional) z16- (also has icon z16-)
|
||||
|
||||
1
data/styles/default/light/symbols/day-spa-m.svg
Normal file
1
data/styles/default/light/symbols/day-spa-m.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg height="18" viewBox="0 0 18 18" width="18" xmlns="http://www.w3.org/2000/svg"><g fill="none"><circle cx="9" cy="9" fill="#fff" opacity=".6" r="9"/><circle cx="9" cy="9" fill="#be75a3" r="8.25"/><path d="m6.30055657 9.36465433.00689805.0737763c.14582844 1.17941477.67189526 2.27631057 1.56061293 3.27868287l-.00113465.0761216c-1.22761107.0592649-2.19488995-.2708693-2.90183667-.9904025-.70694671-.7195332-1.02550703-1.6981313-.95568097-2.93579437.9045588-.05286646 1.66827257.11300557 2.29114131.4976161zm7.46682273-.50627566.2232054.00865956c.0698261 1.23766307-.2487342 2.21626117-.9556809 2.93579437s-1.6742256 1.0496674-2.9018367.9904025l-.0011346-.0761216c.8887176-1.0023723 1.4147844-2.0992681 1.5606129-3.27868287l.006898-.0737763c.570963-.35255965 1.260275-.5213182 2.0679359-.50627566zm-4.7673793-4.05837867.19024281.17805949c1.17397699 1.13425665 1.76096549 2.39289765 1.76096549 3.77592299 0 1.45581612-.6504028 2.78575212-1.9512083 3.98980792-1.30080552-1.2040558-1.95120828-2.5339918-1.95120828-3.98980792 0-1.45581615.65040276-2.77381031 1.95120828-3.95398248zm-3.64250524 1.23453276c.52429331.11064075.98164792.28211324 1.37206381.51441745-.26807889.60635877-.42055963 1.24178775-.45592669 1.90388473-.3404372-.15607091-.70942568-.26527279-1.10368332-.32818887-.12186067-.63450512-.05872551-1.33159631.1875462-2.09011331zm7.28501044 0c.2462718.758517.3094069 1.45560819.1875462 2.09011331-.3942576.06291608-.7632461.17211796-1.1036833.32818887-.035367-.66209698-.1878478-1.29752596-.4559267-1.90388473.3904159-.23230421.8477705-.4037767 1.3720638-.51441745z" fill="#fff" fill-rule="evenodd"/></g></svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
@@ -844,6 +844,7 @@ shop-antiques # icon z16- (also has captio
|
||||
shop-appliance # icon z18- (also has caption(optional) z18-)
|
||||
shop-baby_goods # icon z18- (also has caption(optional) z18-)
|
||||
shop-beauty # icon z16- (also has caption(optional) z16-)
|
||||
shop-beauty-day_spa # icon z16- (also has caption(optional) z16-)
|
||||
shop-beverages # icon z16- (also has caption(optional) z16-)
|
||||
shop-boutique # icon z18- (also has caption(optional) z18-)
|
||||
shop-car_repair # icon z16- (also has caption(optional) z16-)
|
||||
@@ -1893,6 +1894,7 @@ leisure-swimming_pool-private # icon z17- (also has captio
|
||||
# shop-appliance # caption(optional) z18- (also has icon z18-)
|
||||
# shop-baby_goods # caption(optional) z18- (also has icon z18-)
|
||||
# shop-beauty # caption(optional) z16- (also has icon z16-)
|
||||
# shop-beauty-day_spa # caption(optional) z16- (also has icon z16-)
|
||||
# shop-beverages # caption(optional) z16- (also has icon z16-)
|
||||
# shop-boutique # caption(optional) z18- (also has icon z18-)
|
||||
# shop-car_repair # caption(optional) z16- (also has icon z16-)
|
||||
|
||||
@@ -1291,6 +1291,7 @@
|
||||
"type.shop.kitchen" = "Kitchen Shop";
|
||||
"type.shop.laundry" = "Launderette";
|
||||
"type.shop.mall" = "Shopping Centre";
|
||||
"type.shop.beauty.day_spa" = "Day Spa";
|
||||
"type.shop.massage" = "Massage Salon";
|
||||
"type.shop.mobile_phone" = "Mobile Phone Shop";
|
||||
"type.shop.money_lender" = "Money Lender";
|
||||
|
||||
@@ -1331,6 +1331,7 @@
|
||||
"type.shop.kitchen" = "Kitchen Store";
|
||||
"type.shop.laundry" = "Laundry";
|
||||
"type.shop.mall" = "Mall";
|
||||
"type.shop.beauty.day_spa" = "Day Spa";
|
||||
"type.shop.massage" = "Massage Salon";
|
||||
"type.shop.mobile_phone" = "Mobile Phone Store";
|
||||
"type.shop.money_lender" = "Money Lender";
|
||||
|
||||
@@ -33,7 +33,6 @@ set(SRC
|
||||
xml_feature.cpp
|
||||
xml_feature.hpp
|
||||
yes_no_unknown.hpp
|
||||
keys_to_remove.hpp
|
||||
)
|
||||
|
||||
omim_add_library(${PROJECT_NAME} ${SRC})
|
||||
|
||||
@@ -57,9 +57,6 @@ std::string GetTypeForFeature(editor::XMLFeature const & node)
|
||||
}
|
||||
}
|
||||
|
||||
if (node.HasTag("disused:shop") || node.HasTag("disused:amenity"))
|
||||
return "vacant business";
|
||||
|
||||
if (node.HasTag("addr:housenumber") || node.HasTag("addr:street") || node.HasTag("addr:postcode"))
|
||||
return "address";
|
||||
|
||||
|
||||
@@ -1,135 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <string_view>
|
||||
|
||||
// Keys that should be removed when a place in OSM is replaced, copied from
|
||||
// https://github.com/mnalis/StreetComplete-taginfo-categorize/blob/master/sc_to_remove.txt
|
||||
|
||||
// Changes to the list: don't remove 'wheelchair' and addresses in the 'contact:' style
|
||||
|
||||
inline constexpr std::string_view kKeysToRemove[] = {
|
||||
"shop_?[1-9]?(:.*)?", "craft_?[1-9]?", "amenity_?[1-9]?", "club_?[1-9]?", "old_amenity",
|
||||
"old_shop", "information", "leisure", "office_?[1-9]?", "tourism",
|
||||
// popular shop=* / craft=* subkeys
|
||||
"marketplace", "household", "swimming_pool", "laundry", "golf", "sports", "ice_cream",
|
||||
"scooter", "music", "retail", "yes", "ticket", "newsagent", "lighting", "truck", "car_repair",
|
||||
"car_parts", "video", "fuel", "farm", "car", "tractor", "hgv", "ski", "sculptor",
|
||||
"hearing_aids", "surf", "photo", "boat", "gas", "kitchen", "anime", "builder", "hairdresser",
|
||||
"security", "bakery", "bakehouse", "fishing", "doors", "kiosk", "market", "bathroom", "lamps",
|
||||
"vacant", "insurance(:.*)?", "caravan", "gift", "bicycle", "bicycle_rental", "insulation",
|
||||
"communication", "mall", "model", "empty", "wood", "hunting", "motorcycle", "trailer",
|
||||
"camera", "water", "fireplace", "outdoor", "blacksmith", "electronics", "fan", "piercing",
|
||||
"stationery", "sensory_friendly(:.*)?", "street_vendor", "sells(:.*)?", "safety_equipment",
|
||||
// obsoleted information
|
||||
"(demolished|abandoned|disused)(:(?!bui).+)?", "was:.*", "not:.*", "damage", "created_by",
|
||||
"check_date", "opening_date", "last_checked", "checked_exists:date", "pharmacy_survey",
|
||||
"old_ref", "update", "import_uuid", "review", "fixme:atp",
|
||||
// classifications / links to external databases
|
||||
"fhrs:.*", "old_fhrs:.*", "fvst:.*", "ncat", "nat_ref", "gnis:.*", "winkelnummer",
|
||||
"type:FR:FINESS", "type:FR:APE", "kvl_hro:amenity", "ref:DK:cvr(:.*)?", "certifications?",
|
||||
"transiscope", "opendata:type", "local_ref", "official_ref",
|
||||
// names and identifications
|
||||
"name_?[1-9]?(:.*)?", ".*_name_?[1-9]?(:.*)?", "noname", "branch(:.*)?", "brand(:.*)?",
|
||||
"not:brand(:.*)?", "network(:.*)?", "operator(:.*)?", "operator_type", "ref", "ref:vatin",
|
||||
"designation", "SEP:CLAVEESC", "identifier", "ref:FR:SIRET", "ref:FR:SIREN", "ref:FR:NAF",
|
||||
"(old_)?ref:FR:prix-carburants",
|
||||
// contacts
|
||||
"contact_person", "phone(:.*)?", "phone_?[1-9]?", "emergency:phone", "emergency_telephone_code",
|
||||
"contact:(?!housenumber$|street$|place$|postcode$|city$|country$|pobox$|unit$).*",
|
||||
"mobile", "fax", "facebook", "instagram", "twitter", "youtube", "telegram", "tiktok", "email",
|
||||
"website_?[1-9]?(:.*)?", "app:.*", "ownership",
|
||||
"url", "url:official", "source_ref:url", "owner",
|
||||
// payments
|
||||
"payment(:.*)?", "payment_multi_fee", "currency(:.*)?", "cash_withdrawal(:.*)?", "fee",
|
||||
"charge", "charge_fee", "money_transfer", "donation:compensation", "paypoint",
|
||||
// generic shop/craft attributes
|
||||
"seasonal", "time", "opening_hours(:.*)?", "check_(in|out)", "wifi", "internet",
|
||||
"internet_access(:.*)?", "second_hand", "self_service", "automated", "license:.*",
|
||||
"bulk_purchase", ".*:covid19", "language:.*", "baby_feeding", "description(:.*)?",
|
||||
"description[0-9]", "min_age", "max_age", "supermarket(:.*)?", "social_facility(:.*)?",
|
||||
"functional", "trade", "wholesale", "sale", "smoking(:outside)?", "zero_waste", "origin",
|
||||
"attraction", "strapline", "dog", "showroom", "toilets?(:.*)?", "sanitary_dump_station",
|
||||
"changing_table(:.*)?", "blind", "company(:.*)?", "stroller", "walk-in",
|
||||
"webshop", "operational_status.*", "status", "drive_through", "surveillance(:.*)?",
|
||||
"outdoor_seating", "indoor_seating", "colour", "access_simple", "floor", "product_category",
|
||||
"guide", "source_url", "category", "kids_area", "kids_area:indoor", "resort", "since", "state",
|
||||
"temporary", "self_checkout", "audio_loop", "related_law(:.*)?", "official_status(:.*)?",
|
||||
// food and drink details
|
||||
"bar", "cafe", "coffee", "microroasting", "microbrewery", "brewery", "real_ale", "taproom",
|
||||
"training", "distillery", "drink(:.*)?", "cocktails", "alcohol", "wine([:_].*)?",
|
||||
"happy_hours", "diet:.*", "cuisine", "ethnic", "tasting", "breakfast", "lunch", "organic",
|
||||
"produced_on_site", "restaurant", "food", "pastry", "pastry_shop", "product", "produce",
|
||||
"chocolate", "fair_trade", "butcher", "reservation(:.*)?", "takeaway(:.*)?", "delivery(:.*)?",
|
||||
"caterer", "real_fire", "flour_fortified", "highchair", "fast_food", "pub", "snack",
|
||||
"confectionery", "drinking_water:refill",
|
||||
// related to repair shops/crafts
|
||||
"service(:.*)?", "motorcycle:.*", "repair", ".*:repair", "electronics_repair(:.*)?",
|
||||
"workshop",
|
||||
// shop=hairdresser, shop=clothes
|
||||
"unisex", "male", "female", "gender", "gender_simple", "lgbtq(:.*)?", "gay", "female:signed",
|
||||
"male:signed",
|
||||
// healthcare
|
||||
"healthcare(:.*)?", "healthcare_.*", "health", "health_.*", "speciality", "medical_.*",
|
||||
"emergency_ward", "facility(:.*)?", "activities", "healthcare_facility(:.*)?",
|
||||
"laboratory(:.*)?", "blood(:.*)?", "blood_components", "infection(:.*)?", "disease(:.*)?",
|
||||
"covid19(:.*)?", "COVID_.*", "CovidVaccineCenterId", "coronaquarantine", "hospital(:.*)?",
|
||||
"hospital_type_id", "emergency_room", "sample_collection(:.*)?", "bed_count", "capacity:beds",
|
||||
"part_time_beds", "personnel:count", "staff_count(:.*)?", "admin_staff", "doctors",
|
||||
"doctors_num", "nurses_num", "counselling_type", "testing_centres", "toilets_number",
|
||||
"urgent_care", "vaccination", "clinic", "hospital", "pharmacy", "alternative", "laboratory",
|
||||
"sample_collection", "provided_for(:.*)?", "social_facility_for", "ambulance", "ward",
|
||||
"HSE_(code|hgid|hgroup|region)", "collection_centre", "design", "AUTORIZATIE", "reg_id",
|
||||
"post_addr", "scope", "ESTADO", "NIVSOCIO", "NO", "EMP_EST", "COD_HAB", "CLA_PERS", "CLA_PRES",
|
||||
"snis_code:.*", "hfac_bed", "hfac_type", "nature", "moph_code", "IJSN:.*", "massgis:id",
|
||||
"OGD-Stmk:.*", "paho:.*", "panchayath", "pbf_contract", "pcode", "pe:minsa:.*", "who:.*",
|
||||
"pharmacy:category", "tactile_paving", "HF_(ID|TYPE|N_EN)", "RoadConn", "bin", "hiv(:.*)?",
|
||||
// accommodation & layout
|
||||
"rooms", "stars", "accommodation", "beds", "capacity(:persons)?", "laundry_service",
|
||||
"guest_house",
|
||||
// amenity=place_of_worship
|
||||
"deanery", "subject:(wikidata|wikipedia|wikimedia_commons)", "church", "church:type",
|
||||
// schools
|
||||
"capacity:(pupils|teachers)", "grades", "population:pupils(:.*)?",
|
||||
"school:(FR|gender|trust|type|type_idn|group:type)", "primary",
|
||||
// clubs
|
||||
"animal(_breeding|_training)?", "billiards(:.*)?", "board_game", "sport_1", "sport:boating",
|
||||
"boat:type", "canoe(_rental|:service)?", "kayak(_rental|:service)?",
|
||||
"sailboat(_rental|:service)?", "horse_riding", "rugby", "boules", "callsign", "card_games",
|
||||
"car_service", "catastro:ref", "chess(:.*)?", "children", "climbing(:.*)?", "club(:.*)?",
|
||||
"communication(:amateur_radio.*)", "community_centre:for", "dffr:network", "dormitory",
|
||||
"education_for:ages", "electrified", "esperanto", "events_venue", "family", "federation",
|
||||
"free_flying(:.*)?", "freemasonry(:.*)?", "free_refill", "gaelic_games(:.*)?", "membership",
|
||||
"military_service", "model_aerodrome(:.*)?", "mode_of_organisation(:.*)?", "snowmobile",
|
||||
"social_centre(:for)?", "source_dat", "tennis", "old_website", "organisation", "school_type",
|
||||
"scout(:type)?", "fraternity", "live_music", "lockable", "playground(:theme)?", "nudism",
|
||||
"music_genre", "length", "fire_station:type:FR", "cadet", "observatory:type", "tower:type",
|
||||
"zoo", "shooting", "commons", "groomer", "group_only", "hazard", "identity", "interaction",
|
||||
"logo", "maxheight", "provides", "regional", "scale", "site", "plots", "allotments",
|
||||
"local_food", "monitoring:pedestrian", "recording:automated", "yacht", "background_music",
|
||||
"url:spaceapi", "openfire", "fraternity(:.*)?",
|
||||
// misc specific attributes
|
||||
"clothes", "shoes", "tailor", "beauty", "tobacco", "carpenter", "furniture", "lottery",
|
||||
"sport", "dispensing", "tailor:.*", "gambling", "material", "raw_material", "stonemason",
|
||||
"studio", "scuba_diving(:.*)?", "polling_station", "collector", "books", "agrarian",
|
||||
"musical_instrument", "massage", "parts", "post_office(:.*)?", "religion", "denomination",
|
||||
"rental", ".*:rental", "tickets:.*", "public_transport", "goods_supply", "pet", "appliance",
|
||||
"artwork_type", "charity", "company", "crop", "dry_cleaning", "factory", "feature",
|
||||
"air_conditioning", "atm", "vending", "vending_machine", "recycling_type", "museum",
|
||||
"license_classes", "dance:.*", "isced:level", "school", "preschool", "university",
|
||||
"research_institution", "research", "member_of", "topic", "townhall:type", "parish", "police",
|
||||
"government", "thw:(lv|rb|ltg)", "office", "administration", "administrative", "association",
|
||||
"transport", "utility", "consulting", "Commercial", "commercial", "private", "taxi",
|
||||
"admin_level", "official_status", "target", "liaison", "diplomatic(:.*)?", "embassy",
|
||||
"consulate", "aeroway", "department", "faculty", "aerospace:product", "boundary", "population",
|
||||
"diocese", "depot", "cargo", "function", "game", "party", "political_party.*",
|
||||
"telecom(munication)?", "service_times", "kitchen:facilities", "it:(type|sales)",
|
||||
"cannabis:cbd", "bath:type", "bath:(open_air|sand_bath)", "animal_boarding", "animal_shelter",
|
||||
"mattress", "screen", "monitoring:weather", "public", "theatre", "culture", "library",
|
||||
"cooperative(:.*)?", "winery", "curtain", "lawyer(:.*)?", "local_authority(:.*)?", "equipment",
|
||||
"hackerspace",
|
||||
"camp_site", "camping", "bbq", "static_caravans", "emergency(:.*)?", "evacuation_cent(er|re)",
|
||||
"education", "engineering", "forestry", "foundation", "lawyer", "logistics", "military",
|
||||
"community_centre", "bank", "operational", "users_(PLWD|boy|elderly|female|girl|men)",
|
||||
"Comments?", "comments?", "entrance:(width|step_count|kerb:height)", "fenced", "motor_vehicle",
|
||||
"shelter",
|
||||
};
|
||||
@@ -668,7 +668,7 @@ void Editor::UploadChanges(string const & oauthToken, ChangesetTags tags, Finish
|
||||
{}
|
||||
|
||||
// Add tags to XMLFeature
|
||||
UpdateXMLFeatureTags(feature, journal, changeset);
|
||||
UpdateXMLFeatureTags(feature, journal);
|
||||
|
||||
// Upload XMLFeature to OSM
|
||||
LOG(LDEBUG, ("CREATE Feature (newEditor)", feature));
|
||||
@@ -686,7 +686,7 @@ void Editor::UploadChanges(string const & oauthToken, ChangesetTags tags, Finish
|
||||
XMLFeature feature = GetMatchingFeatureFromOSM(changeset, fti.m_object);
|
||||
|
||||
// Update tags of XMLFeature
|
||||
UpdateXMLFeatureTags(feature, journal, changeset);
|
||||
UpdateXMLFeatureTags(feature, journal);
|
||||
|
||||
// Upload XMLFeature to OSM
|
||||
LOG(LDEBUG, ("MODIFIED Feature (newEditor)", feature));
|
||||
@@ -1321,8 +1321,7 @@ bool Editor::IsFeatureUploadedImpl(FeaturesContainer const & features, MwmId con
|
||||
return info && info->m_uploadStatus == kUploaded;
|
||||
}
|
||||
|
||||
void Editor::UpdateXMLFeatureTags(editor::XMLFeature & feature, std::list<JournalEntry> const & journal,
|
||||
ChangesetWrapper & changeset)
|
||||
void Editor::UpdateXMLFeatureTags(editor::XMLFeature & feature, std::list<JournalEntry> const & journal)
|
||||
{
|
||||
for (JournalEntry const & entry : journal)
|
||||
{
|
||||
@@ -1336,13 +1335,6 @@ void Editor::UpdateXMLFeatureTags(editor::XMLFeature & feature, std::list<Journa
|
||||
}
|
||||
case JournalEntryType::ObjectCreated: break;
|
||||
case JournalEntryType::LegacyObject: ASSERT_FAIL(("Legacy Objects can not be edited with the new editor")); break;
|
||||
case JournalEntryType::BusinessReplacement:
|
||||
{
|
||||
BusinessReplacementData const & businessReplacementData = std::get<BusinessReplacementData>(entry.data);
|
||||
feature.OSMBusinessReplacement(businessReplacementData.old_type, businessReplacementData.new_type);
|
||||
changeset.AddChangesetTag("info:place_marked_as_disused", "yes");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "editor/changeset_wrapper.hpp"
|
||||
#include "editor/config_loader.hpp"
|
||||
#include "editor/editor_config.hpp"
|
||||
#include "editor/editor_notes.hpp"
|
||||
@@ -242,8 +241,7 @@ private:
|
||||
|
||||
static bool IsFeatureUploadedImpl(FeaturesContainer const & features, MwmId const & mwmId, uint32_t index);
|
||||
|
||||
static void UpdateXMLFeatureTags(editor::XMLFeature & feature, std::list<JournalEntry> const & journal,
|
||||
ChangesetWrapper & changeset);
|
||||
void UpdateXMLFeatureTags(editor::XMLFeature & feature, std::list<JournalEntry> const & journal);
|
||||
|
||||
/// Deleted, edited and created features.
|
||||
base::AtomicSharedPtr<FeaturesContainer> m_features;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "editor/xml_feature.hpp"
|
||||
#include "editor/keys_to_remove.hpp"
|
||||
|
||||
#include "indexer/classificator.hpp"
|
||||
#include "indexer/editable_map_object.hpp"
|
||||
@@ -16,7 +15,6 @@
|
||||
#include "base/timer.hpp"
|
||||
|
||||
#include <array>
|
||||
#include <boost/regex.hpp>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
@@ -504,29 +502,6 @@ osm::EditJournal XMLFeature::GetEditJournal() const
|
||||
entry.data = legacyObjData;
|
||||
break;
|
||||
}
|
||||
case osm::JournalEntryType::BusinessReplacement:
|
||||
{
|
||||
osm::BusinessReplacementData businessReplacementData;
|
||||
|
||||
// Old Feature Type
|
||||
std::string old_strType = getAttribute(xmlData, "old_type");
|
||||
if (old_strType.empty())
|
||||
MYTHROW(editor::InvalidJournalEntry, ("Old Feature type is empty"));
|
||||
businessReplacementData.old_type = classif().GetTypeByReadableObjectName(old_strType);
|
||||
if (businessReplacementData.old_type == IndexAndTypeMapping::INVALID_TYPE)
|
||||
MYTHROW(editor::InvalidJournalEntry, ("Invalid old Feature Type:", old_strType));
|
||||
|
||||
// New Feature Type
|
||||
std::string new_strType = getAttribute(xmlData, "new_type");
|
||||
if (new_strType.empty())
|
||||
MYTHROW(editor::InvalidJournalEntry, ("New Feature type is empty"));
|
||||
businessReplacementData.new_type = classif().GetTypeByReadableObjectName(new_strType);
|
||||
if (businessReplacementData.new_type == IndexAndTypeMapping::INVALID_TYPE)
|
||||
MYTHROW(editor::InvalidJournalEntry, ("Invalid new Feature Type:", new_strType));
|
||||
|
||||
entry.data = businessReplacementData;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (isHistory)
|
||||
journal.AddJournalHistoryEntry(entry);
|
||||
@@ -597,14 +572,6 @@ void XMLFeature::SetEditJournal(osm::EditJournal const & journal)
|
||||
xmlData.append_attribute("version") = legacyObjData.version.data();
|
||||
break;
|
||||
}
|
||||
case osm::JournalEntryType::BusinessReplacement:
|
||||
{
|
||||
osm::BusinessReplacementData const & businessReplacementData =
|
||||
std::get<osm::BusinessReplacementData>(entry.data);
|
||||
xmlData.append_attribute("old_type") = classif().GetReadableObjectName(businessReplacementData.old_type).data();
|
||||
xmlData.append_attribute("new_type") = classif().GetReadableObjectName(businessReplacementData.new_type).data();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -708,52 +675,6 @@ void XMLFeature::UpdateOSMTag(std::string_view key, std::string_view value)
|
||||
}
|
||||
}
|
||||
|
||||
void XMLFeature::OSMBusinessReplacement(uint32_t old_type, uint32_t new_type)
|
||||
{
|
||||
std::string name = GetTagValue("name");
|
||||
|
||||
// Remove OSM tags using the list from keys_to_remove.hpp
|
||||
static boost::regex const regex([]
|
||||
{
|
||||
std::string regexPattern;
|
||||
|
||||
for (auto const & key : kKeysToRemove)
|
||||
{
|
||||
if (!regexPattern.empty())
|
||||
regexPattern.append("|");
|
||||
regexPattern.append(key);
|
||||
}
|
||||
return regexPattern;
|
||||
}());
|
||||
|
||||
ForEachTag([this](std::string_view key, std::string_view /*value*/)
|
||||
{
|
||||
if (boost::regex_match(key.begin(), key.end(), regex))
|
||||
RemoveTag(key);
|
||||
});
|
||||
|
||||
if (classif().GetReadableObjectName(new_type) == "disusedbusiness")
|
||||
{
|
||||
// Mark as 'disused'
|
||||
string const strOldType = classif().GetReadableObjectName(old_type);
|
||||
strings::SimpleTokenizer iter(strOldType, "-");
|
||||
string_view const key = *iter;
|
||||
if (++iter)
|
||||
SetTagValue("disused:" + std::string(key), *iter);
|
||||
else
|
||||
SetTagValue("disused:" + std::string(key), "yes");
|
||||
|
||||
if (!name.empty())
|
||||
SetTagValue("old_name", name);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Add new category tag
|
||||
ASSERT_FAIL("Only marking places as 'disused' is implemented yet. Wrong new_type: " +
|
||||
classif().GetReadableObjectName(new_type));
|
||||
}
|
||||
}
|
||||
|
||||
string XMLFeature::GetAttribute(string const & key) const
|
||||
{
|
||||
return GetRootNode().attribute(key.data()).value();
|
||||
|
||||
@@ -187,8 +187,6 @@ public:
|
||||
|
||||
/// Wrapper for SetTagValue and RemoveTag, avoids duplication for similar alternative osm tags
|
||||
void UpdateOSMTag(std::string_view key, std::string_view value);
|
||||
/// Replace an old business with a new business
|
||||
void OSMBusinessReplacement(uint32_t old_type, uint32_t new_type);
|
||||
|
||||
std::string GetAttribute(std::string const & key) const;
|
||||
void SetAttribute(std::string const & key, std::string const & value);
|
||||
|
||||
@@ -41,14 +41,6 @@ void EditJournal::MarkAsCreated(uint32_t type, feature::GeomType geomType, m2::P
|
||||
AddJournalEntry({JournalEntryType::ObjectCreated, time(nullptr), osm::ObjCreateData{type, geomType, mercator}});
|
||||
}
|
||||
|
||||
void EditJournal::AddBusinessReplacement(uint32_t old_type, uint32_t new_type)
|
||||
{
|
||||
LOG(LDEBUG, ("Business of type ", classif().GetReadableObjectName(old_type), " was replaced by a ",
|
||||
classif().GetReadableObjectName(new_type)));
|
||||
AddJournalEntry(
|
||||
{JournalEntryType::BusinessReplacement, time(nullptr), osm::BusinessReplacementData{old_type, new_type}});
|
||||
}
|
||||
|
||||
void EditJournal::AddJournalEntry(JournalEntry entry)
|
||||
{
|
||||
m_journal.push_back(std::move(entry));
|
||||
@@ -111,15 +103,6 @@ std::string EditJournal::ToString(osm::JournalEntry const & journalEntry)
|
||||
LegacyObjData const & legacyObjData = std::get<LegacyObjData>(journalEntry.data);
|
||||
return ToString(journalEntry.journalEntryType).append(": version=\"").append(legacyObjData.version).append("\"");
|
||||
}
|
||||
case osm::JournalEntryType::BusinessReplacement:
|
||||
{
|
||||
BusinessReplacementData const & businessReplacementData = std::get<BusinessReplacementData>(journalEntry.data);
|
||||
return ToString(journalEntry.journalEntryType)
|
||||
.append(": Category changed from ")
|
||||
.append(classif().GetReadableObjectName(businessReplacementData.old_type))
|
||||
.append(" to ")
|
||||
.append(classif().GetReadableObjectName(businessReplacementData.new_type));
|
||||
}
|
||||
default: UNREACHABLE();
|
||||
}
|
||||
}
|
||||
@@ -131,7 +114,6 @@ std::string EditJournal::ToString(osm::JournalEntryType journalEntryType)
|
||||
case osm::JournalEntryType::TagModification: return "TagModification";
|
||||
case osm::JournalEntryType::ObjectCreated: return "ObjectCreated";
|
||||
case osm::JournalEntryType::LegacyObject: return "LegacyObject";
|
||||
case osm::JournalEntryType::BusinessReplacement: return "BusinessReplacement";
|
||||
default: UNREACHABLE();
|
||||
}
|
||||
}
|
||||
@@ -144,8 +126,6 @@ std::optional<JournalEntryType> EditJournal::TypeFromString(std::string const &
|
||||
return JournalEntryType::ObjectCreated;
|
||||
else if (entryType == "LegacyObject")
|
||||
return JournalEntryType::LegacyObject;
|
||||
else if (entryType == "BusinessReplacement")
|
||||
return JournalEntryType::BusinessReplacement;
|
||||
else
|
||||
return {};
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@ enum class JournalEntryType
|
||||
TagModification,
|
||||
ObjectCreated,
|
||||
LegacyObject, // object without full journal history, used for transition to new editor
|
||||
BusinessReplacement,
|
||||
// Possible future values: ObjectDeleted, ObjectDisused, ObjectNotDisused, LocationChanged, FeatureTypeChanged
|
||||
};
|
||||
|
||||
@@ -39,17 +38,11 @@ struct LegacyObjData
|
||||
std::string version;
|
||||
};
|
||||
|
||||
struct BusinessReplacementData
|
||||
{
|
||||
uint32_t old_type;
|
||||
uint32_t new_type;
|
||||
};
|
||||
|
||||
struct JournalEntry
|
||||
{
|
||||
JournalEntryType journalEntryType = JournalEntryType::TagModification;
|
||||
time_t timestamp;
|
||||
std::variant<TagModData, ObjCreateData, LegacyObjData, BusinessReplacementData> data;
|
||||
std::variant<TagModData, ObjCreateData, LegacyObjData> data;
|
||||
};
|
||||
|
||||
/// Used to determine whether existing OSM object should be updated or new one created
|
||||
@@ -76,9 +69,6 @@ public:
|
||||
/// Log object creation in the journal
|
||||
void MarkAsCreated(uint32_t type, feature::GeomType geomType, m2::PointD mercator);
|
||||
|
||||
/// Log business replacement in the journal
|
||||
void AddBusinessReplacement(uint32_t old_type, uint32_t new_type);
|
||||
|
||||
void AddJournalEntry(JournalEntry entry);
|
||||
|
||||
/// Clear Journal and move content to journalHistory, used after upload to OSM
|
||||
|
||||
@@ -87,32 +87,6 @@ vector<MapObject::MetadataID> EditableMapObject::GetEditableProperties() const
|
||||
return props;
|
||||
}
|
||||
|
||||
bool EditableMapObject::CanMarkPlaceAsDisused() const
|
||||
{
|
||||
if (GetEditingLifecycle() == EditingLifecycle::CREATED)
|
||||
return false;
|
||||
|
||||
auto types = GetTypes();
|
||||
types.SortBySpec();
|
||||
uint32_t mainType = *types.begin();
|
||||
std::string mainTypeStr = classif().GetReadableObjectName(mainType);
|
||||
|
||||
constexpr string_view typePrefixes[] = {
|
||||
"shop",
|
||||
"amenity-restaurant",
|
||||
"amenity-fast_food",
|
||||
"amenity-cafe",
|
||||
"amenity-pub",
|
||||
"amenity-bar",
|
||||
};
|
||||
|
||||
for (auto const & typePrefix : typePrefixes)
|
||||
if (mainTypeStr.starts_with(typePrefix))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
NamesDataSource EditableMapObject::GetNamesDataSource()
|
||||
{
|
||||
auto const mwmInfo = GetID().m_mwmId.GetInfo();
|
||||
@@ -682,16 +656,6 @@ void EditableMapObject::MarkAsCreated(uint32_t type, feature::GeomType geomType,
|
||||
m_journal.MarkAsCreated(type, geomType, std::move(mercator));
|
||||
}
|
||||
|
||||
void EditableMapObject::MarkAsDisused()
|
||||
{
|
||||
auto types = GetTypes();
|
||||
types.SortBySpec();
|
||||
uint32_t old_type = *types.begin();
|
||||
uint32_t new_type = classif().GetTypeByReadableObjectName("disusedbusiness");
|
||||
ApplyBusinessReplacement(new_type);
|
||||
m_journal.AddBusinessReplacement(old_type, new_type);
|
||||
}
|
||||
|
||||
void EditableMapObject::ClearJournal()
|
||||
{
|
||||
m_journal.Clear();
|
||||
@@ -709,7 +673,7 @@ void EditableMapObject::ApplyEditsFromJournal(EditJournal const & editJournal)
|
||||
void EditableMapObject::ApplyJournalEntry(JournalEntry const & entry)
|
||||
{
|
||||
LOG(LDEBUG, ("Applying Journal Entry: ", osm::EditJournal::ToString(entry)));
|
||||
|
||||
// Todo
|
||||
switch (entry.journalEntryType)
|
||||
{
|
||||
case JournalEntryType::TagModification:
|
||||
@@ -796,12 +760,6 @@ void EditableMapObject::ApplyJournalEntry(JournalEntry const & entry)
|
||||
ASSERT_FAIL(("Legacy Objects can not be loaded from Journal"));
|
||||
break;
|
||||
}
|
||||
case JournalEntryType::BusinessReplacement:
|
||||
{
|
||||
BusinessReplacementData const & businessReplacementData = std::get<BusinessReplacementData>(entry.data);
|
||||
ApplyBusinessReplacement(businessReplacementData.new_type);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -901,47 +859,6 @@ void EditableMapObject::LogDiffInJournal(EditableMapObject const & unedited_emo)
|
||||
}
|
||||
}
|
||||
|
||||
void EditableMapObject::ApplyBusinessReplacement(uint32_t new_type)
|
||||
{
|
||||
// Types
|
||||
feature::TypesHolder new_feature_types;
|
||||
|
||||
new_feature_types.Add(new_type); // Update feature type
|
||||
|
||||
std::string wheelchairType = feature::GetReadableWheelchairType(m_types);
|
||||
if (!wheelchairType.empty())
|
||||
new_feature_types.SafeAdd(classif().GetTypeByReadableObjectName(wheelchairType));
|
||||
|
||||
std::vector<uint32_t> const buildingTypes = ftypes::IsBuildingChecker::Instance().GetTypes();
|
||||
for (uint32_t const & type : buildingTypes)
|
||||
if (m_types.Has(type))
|
||||
new_feature_types.SafeAdd(type);
|
||||
|
||||
m_types = new_feature_types;
|
||||
|
||||
// Names
|
||||
m_name.Clear();
|
||||
|
||||
// Metadata
|
||||
feature::Metadata new_metadata;
|
||||
|
||||
constexpr MetadataID metadataToKeep[] = {
|
||||
MetadataID::FMD_WHEELCHAIR,
|
||||
MetadataID::FMD_POSTCODE,
|
||||
MetadataID::FMD_LEVEL,
|
||||
MetadataID::FMD_ELE,
|
||||
MetadataID::FMD_HEIGHT,
|
||||
MetadataID::FMD_MIN_HEIGHT,
|
||||
MetadataID::FMD_BUILDING_LEVELS,
|
||||
MetadataID::FMD_BUILDING_MIN_LEVEL
|
||||
};
|
||||
|
||||
for (MetadataID const & metadataID : metadataToKeep)
|
||||
new_metadata.Set(metadataID, std::string(m_metadata.Get(metadataID)));
|
||||
|
||||
m_metadata = new_metadata;
|
||||
}
|
||||
|
||||
bool AreObjectsEqualIgnoringStreet(EditableMapObject const & lhs, EditableMapObject const & rhs)
|
||||
{
|
||||
feature::TypesHolder const & lhsTypes = lhs.GetTypes();
|
||||
|
||||
@@ -78,8 +78,6 @@ public:
|
||||
/// All store/load/valid operations will be via MetadataEntryIFace interface instead of switch-case.
|
||||
std::vector<MetadataID> GetEditableProperties() const;
|
||||
|
||||
bool CanMarkPlaceAsDisused() const;
|
||||
|
||||
/// See comment for NamesDataSource class.
|
||||
NamesDataSource GetNamesDataSource();
|
||||
LocalizedStreet const & GetStreet() const;
|
||||
@@ -143,16 +141,11 @@ public:
|
||||
void SetJournal(EditJournal && editJournal);
|
||||
EditingLifecycle GetEditingLifecycle() const;
|
||||
void MarkAsCreated(uint32_t type, feature::GeomType geomType, m2::PointD mercator);
|
||||
void MarkAsDisused();
|
||||
void ClearJournal();
|
||||
void ApplyEditsFromJournal(EditJournal const & journal);
|
||||
void ApplyJournalEntry(JournalEntry const & entry);
|
||||
void LogDiffInJournal(EditableMapObject const & unedited_emo);
|
||||
|
||||
private:
|
||||
void ApplyBusinessReplacement(uint32_t new_type);
|
||||
|
||||
public:
|
||||
/// Check whether langCode can be used as default name.
|
||||
static bool CanUseAsDefaultName(int8_t const langCode, std::vector<int8_t> const & nativeMwmLanguages);
|
||||
|
||||
|
||||
@@ -3091,13 +3091,6 @@ void Framework::DeleteFeature(FeatureID const & fid)
|
||||
UpdatePlacePageInfoForCurrentSelection();
|
||||
}
|
||||
|
||||
void Framework::MarkPlaceAsDisused(osm::EditableMapObject emo)
|
||||
{
|
||||
emo.MarkAsDisused();
|
||||
osm::Editor::Instance().SaveEditedFeature(emo);
|
||||
UpdatePlacePageInfoForCurrentSelection();
|
||||
}
|
||||
|
||||
osm::NewFeatureCategories Framework::GetEditorCategories() const
|
||||
{
|
||||
return osm::Editor::Instance().GetNewFeatureCategories();
|
||||
|
||||
@@ -755,7 +755,6 @@ public:
|
||||
bool GetEditableMapObject(FeatureID const & fid, osm::EditableMapObject & emo) const;
|
||||
osm::Editor::SaveResult SaveEditedMapObject(osm::EditableMapObject emo);
|
||||
void DeleteFeature(FeatureID const & fid);
|
||||
void MarkPlaceAsDisused(osm::EditableMapObject emo);
|
||||
osm::NewFeatureCategories GetEditorCategories() const;
|
||||
bool RollBackChanges(FeatureID const & fid);
|
||||
void CreateNote(osm::MapObject const & mapObject, osm::Editor::NoteProblemType const type, std::string const & note);
|
||||
|
||||
@@ -311,7 +311,6 @@ RoutingManager::RoutingManager(Callbacks && callbacks, Delegate & delegate)
|
||||
, m_delegate(delegate)
|
||||
, m_extrapolator([this](location::GpsInfo const & gpsInfo) { this->OnExtrapolatedLocationUpdate(gpsInfo); })
|
||||
{
|
||||
m_extrapolator.Enable(true); // Keeps smooth arrow movement whether routing or not
|
||||
m_routingSession.Init(
|
||||
#ifdef SHOW_ROUTE_DEBUG_MARKS
|
||||
[this](m2::PointD const & pt)
|
||||
@@ -556,6 +555,10 @@ void RoutingManager::RemoveRoute(bool deactivateFollowing)
|
||||
if (deactivateFollowing)
|
||||
{
|
||||
m_transitReadManager->BlockTransitSchemeMode(false /* isBlocked */);
|
||||
|
||||
// Switching on the extrapolator only for following mode in car and bicycle navigation.
|
||||
m_extrapolator.Enable(m_currentRouterType == RouterType::Vehicle || m_currentRouterType == RouterType::Bicycle);
|
||||
|
||||
// Remove all subroutes.
|
||||
m_drapeEngine.SafeCall(&df::DrapeEngine::RemoveSubroute, dp::DrapeID(), true /* deactivateFollowing */);
|
||||
}
|
||||
@@ -766,6 +769,7 @@ void RoutingManager::FollowRoute()
|
||||
|
||||
void RoutingManager::CloseRouting(bool removeRoutePoints)
|
||||
{
|
||||
m_extrapolator.Enable(false);
|
||||
// Hide preview.
|
||||
HidePreviewSegments();
|
||||
|
||||
@@ -942,9 +946,9 @@ void RoutingManager::SetPointsFollowingMode(bool enabled)
|
||||
|
||||
void RoutingManager::RemovePassedPoints()
|
||||
{
|
||||
ASSERT(m_bmManager != nullptr, ());
|
||||
RoutePointsLayout routePoints(*m_bmManager);
|
||||
routePoints.RemovePassedPoints();
|
||||
ASSERT(m_bmManager != nullptr, ());
|
||||
RoutePointsLayout routePoints(*m_bmManager);
|
||||
routePoints.RemovePassedPoints();
|
||||
}
|
||||
|
||||
void RoutingManager::ReorderIntermediatePoints()
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#define MWM_GEOLOCATION_SERVER ""
|
||||
#define DIFF_LIST_URL ""
|
||||
#define METASERVER_URL "https://cdn-us-1.comaps.app/servers"
|
||||
#define DEFAULT_URLS_JSON "[ \"https://cdn-us-2.comaps.tech/\", \"https://comaps.firewall-gateway.de/\", \"https://cdn-fi-1.comaps.app/\", \"https://comaps-cdn.s3-website.cloud.ru/\" ]"
|
||||
#define DEFAULT_URLS_JSON "[ \"https://cdn-us-2.comaps.tech/\", \"https://comaps.firewall-gateway.de/\", \"https://cdn-fi-1.comaps.app/\", \"https://comaps-cdn.s3-website.cloud.ru/\", \"https://mapgen-fi-1.comaps.app/\" ]"
|
||||
#define DEFAULT_CONNECTION_CHECK_IP "151.101.195.52" // For now the IP of comaps.app (Fastly CDN)
|
||||
#define TRAFFIC_DATA_BASE_URL ""
|
||||
#define USER_BINDING_PKCS12 ""
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
271DC2172EC60C0C00442D94 /* keys_to_remove.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 271DC2162EC60C0C00442D94 /* keys_to_remove.hpp */; };
|
||||
340C20DE1C3E4DFD00111D22 /* osm_auth.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 340C20DC1C3E4DFD00111D22 /* osm_auth.cpp */; };
|
||||
340C20DF1C3E4DFD00111D22 /* osm_auth.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 340C20DD1C3E4DFD00111D22 /* osm_auth.hpp */; };
|
||||
340DC8291C4E71E500EAA2CC /* changeset_wrapper.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 340DC8271C4E71E500EAA2CC /* changeset_wrapper.cpp */; };
|
||||
@@ -76,7 +75,6 @@
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
270C9C212E16AABF00ABA688 /* module.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; name = module.modulemap; path = ../../libs/editor/module.modulemap; sourceTree = SOURCE_ROOT; };
|
||||
271DC2162EC60C0C00442D94 /* keys_to_remove.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = keys_to_remove.hpp; sourceTree = "<group>"; };
|
||||
340C20DC1C3E4DFD00111D22 /* osm_auth.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = osm_auth.cpp; sourceTree = "<group>"; };
|
||||
340C20DD1C3E4DFD00111D22 /* osm_auth.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = osm_auth.hpp; sourceTree = "<group>"; };
|
||||
340DC8271C4E71E500EAA2CC /* changeset_wrapper.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = changeset_wrapper.cpp; sourceTree = "<group>"; };
|
||||
@@ -242,7 +240,6 @@
|
||||
6715560420BEC331002BA3B4 /* edits_migration.hpp */,
|
||||
3D052486200F62ED00F24998 /* feature_matcher.cpp */,
|
||||
3D052485200F62ED00F24998 /* feature_matcher.hpp */,
|
||||
271DC2162EC60C0C00442D94 /* keys_to_remove.hpp */,
|
||||
6715565220BF0F86002BA3B4 /* new_feature_categories.cpp */,
|
||||
6715565320BF0F87002BA3B4 /* new_feature_categories.hpp */,
|
||||
341138741C15AE42002E3B3E /* opening_hours_ui.cpp */,
|
||||
@@ -340,7 +337,6 @@
|
||||
6715565520BF0F87002BA3B4 /* new_feature_categories.hpp in Headers */,
|
||||
6715560820BEC332002BA3B4 /* edits_migration.hpp in Headers */,
|
||||
3D052487200F62EE00F24998 /* feature_matcher.hpp in Headers */,
|
||||
271DC2172EC60C0C00442D94 /* keys_to_remove.hpp in Headers */,
|
||||
3411387B1C15AE42002E3B3E /* ui2oh.hpp in Headers */,
|
||||
341138791C15AE42002E3B3E /* opening_hours_ui.hpp in Headers */,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user