Skip to content

Commit

Permalink
Update tile endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
karimnaaji committed Mar 11, 2018
1 parent 3a0effd commit dd3db54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cmdline.c
Expand Up @@ -24,7 +24,7 @@ int main(int argc, const char **argv) {
float roadsExtrusionWidth = 5.f;
int normals = 0;
const char* name = NULL;
const char* apiKey = "vector-tiles-qVaBcRA";
const char* apiKey = "xwlF66_oRKWWb058St_Q9Q";

// Parse params
flag_usage("[options]");
Expand Down
4 changes: 2 additions & 2 deletions src/vectiler.cpp
Expand Up @@ -751,14 +751,14 @@ bool extractTileRange(int* start, int* end, const std::string& range) {
}

inline std::string vectorTileURL(const Tile& tile, const std::string& apiKey) {
return "https://tile.mapzen.com/mapzen/vector/v1/all/"
return "https://tile.nextzen.org/tilezen/vector/v1/256/all/"
+ std::to_string(tile.z) + "/"
+ std::to_string(tile.x) + "/"
+ std::to_string(tile.y) + ".json?api_key=" + apiKey;
}

inline std::string terrainURL(const Tile& tile, const std::string& apiKey) {
return "https://tile.mapzen.com/mapzen/terrain/v1/terrarium/"
return "https://tile.nextzen.org/tilezen/terrain/v1/256/terrarium/"
+ std::to_string(tile.z) + "/"
+ std::to_string(tile.x) + "/"
+ std::to_string(tile.y) + ".png?api_key=" + apiKey;
Expand Down

0 comments on commit dd3db54

Please sign in to comment.