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 ....

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=26.841,75.801&radius=5000&types=hospital&key=aizasybstnd0ma7nzjpulzrcntowyjwxakxqsfi";

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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -