how to pass value at runtime in url in android using json parsing? -
i trying name , address of hospitals,atm's,restaurants ....etc. near location of google near places api use json parsing ,since can able name , address problem can't understand how can different values of ex. hotel,hospital,atm,bank...etc. using same url putting different different values in run time.here url ....
in above url there field "types" ,here want pass different different values @ run time.....like hotel,hospital,bank,atm ...etc.
string type = "hospital"; int radius =5000; string string = string.format("https://maps.googleapis.com/maps/api/place/nearbysearch /json?location=26.841,75.801&radius=%d&types=%s& key=aizasybstnd0ma7nzjpulzrcntowyjwxakxqsfi", radius, type);
Comments
Post a Comment