Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import java.util.Locale;

public class Main {
    public static String getMapTileURL(String mapID, String accessToken, int zoom, int x, int y) {
        return String.format(Locale.US, "https://a.tiles.mapbox.com/v4/%s/%d/%d/%d%s.%s?access_token=%s", mapID,
                zoom, x, y, "@2x", "png", accessToken);
    }
}