Tabnine Logo
GlopusFormat
Code IndexAdd Tabnine to your IDE (free)

How to use
GlopusFormat
in
slash.navigation.simple

Best Java code snippets using slash.navigation.simple.GlopusFormat (Showing top 3 results out of 315)

origin: cpesch/RouteConverter

public String getName() {
  return "Glopus (*" + getExtension() + ")";
}
origin: cpesch/RouteConverter

private String createStringFor(List<NavigationPosition> sourcePositions) {
  GlopusFormat targetFormat = new GlopusFormat();
  List<BaseNavigationPosition> targetPositions = new ArrayList<>();
  try {
    targetPositions = convertPositions(sourcePositions, targetFormat);
  } catch (IOException e) {
    log.severe("Cannot convert " + sourcePositions + " for selection: " + e);
  }
  SimpleRoute targetRoute = targetFormat.createRoute(Waypoints, null, targetPositions);
  StringWriter writer = new StringWriter();
  targetFormat.write(targetRoute, new PrintWriter(writer), 0, targetPositions.size());
  return writer.toString();
}
origin: cpesch/RouteConverter

@SuppressWarnings("UnusedDeclaration")
public SimpleRoute asGlopusFormat() {
  if (getFormat() instanceof GlopusFormat)
    return (SimpleRoute) this;
  return asSimpleFormat(new GlopusFormat());
}
slash.navigation.simpleGlopusFormat

Javadoc

Reads and writes Glopus (.tk) files. Format: 51.0450383,7.0508300,Comment 51.04503,7.05083

Most used methods

  • <init>
  • createRoute
  • getExtension
  • write

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now