paths property

  1. @override
String get paths
override

Get the API endpoint path based on the service type.

Returns "/search" for NominatimServiceType.search, "/reverse" for NominatimServiceType.reverse, and "/status" for NominatimServiceType.status and "/lookup" for NominatimServiceType.lookup.

Implementation

@override
String get paths {
  switch (type) {
    case NominatimServiceType.search:
      return "/search";
    case NominatimServiceType.reverse:
      return "/reverse";
    case NominatimServiceType.status:
      return "/status";
    case NominatimServiceType.lookup:
      return "/lookup";
  }
}