nicksam112 / pokeclone

Pokemon GO clone Created in Unity 5
102 stars 41 forks source link

mapzen change the API #5

Open oliversitan opened 7 years ago

oliversitan commented 7 years ago

hi, the project no longer work no mobile, maybe because the "mapzen" change the API . I started whit this:

var url = "http://tile.mapzen.com/mapzen/vector/v1/all/"+ zoom +"/"; var apiKey = "mapzen-xxxxxxx"; //<---------Your API key //** var www = new WWW(url + tileurl + ".json?api_key="+apiKey);

but i not understand the other part. thanks for all.

TylusKinas commented 7 years ago

It should be very easy to fix...

TylusKinas commented 7 years ago

old links sould work for 1year from now you can chek http://tile.mapzen.com/mapzen/vector/v1/all/16/37372/20813.json

TylusKinas commented 7 years ago

But it looks it has some kind of bloking for unity... any ideas?

TylusKinas commented 7 years ago

it looks fixed at my pc(just need to delet old map data) :) or just cange app name

var url = "http://tile.mapzen.com/mapzen/vector/v1/all/" + zoom + "/"; var api = "mapzen-mpoiihW";//<-paste your api key here;

if (api == "mapzen-xxxxxxx")print ("you sould get api keu from https://mapzen.com/documentation/search/api-keys-rate-limits/#get-an-api-key and replacei it in TILE.cs line 88"); var www = new WWW(url + tileurl + ".json?api_key=" + api);

oliversitan commented 7 years ago

Thanks man, i fix it yesterday at the night, but I not publish more because I was dead.