The City Docs
7.4
7.4
  • Welcome
  • ADMIN PANEL
    • Import Project
    • Structure
    • Notification
    • MySQL Database
    • Add New Category
    • News Info
    • Custom Color
    • Change Log
  • ANDROID
    • Getting Started
      • Installation
      • Import Project
    • Structure
    • Package Name ( app id )
    • Firebase [must]
    • REST API
      • Configure API Url
      • Validate Your Web
    • Category
      • Integration
      • Add New
    • Remote Config
    • Ad Networks
    • Maps Configuration
    • Sort By Distance
    • Lazy Load
    • SQLite Database
    • Custom Color
    • Change Log
  • License
Powered by GitBook
On this page
  1. ANDROID

Sort By Distance

We already implement new feature sort by distance start on version 4.1. When user enable GPS this feature will automatically active. There 3 configuration you should to know.

you can see from file data/AppConfig.java :

public static final boolean SORT_BY_DISTANCE = true;
public static final String DISTANCE_METRIC_CODE = "KILOMETER";
public static final String DISTANCE_METRIC_STR = "Km";

1. You can disable this feature pernamenly by set SORT_BY_DISTANCE with false.

2. We provide 2 option of metric, Kilometer and Mile. You only allowed to set DISTANCE_METRIC_CODE with value "KILOMETER" or "MILE.

3. For string that display at user interface you can change on DISTANCE_METRIC_STR with your string. like : Mile, Mi, Kilo, Km, etc.

PreviousMaps ConfigurationNextLazy Load