php - City name, County name returning in other languages not in English -


when search using below fq api :

https://api.foursquare.com/v2/venues/search?ll=19.346523,-99.191292&query=gimn&oauth_token=z1nasaz5ieusdjajg1vmqo5yx410djxukbkahxn0fyib15bq&v=20150401

in browser got city name "mexico city".

but, when used api call in file_get_contents or curl, city name returning "ciudad de méxico" in spanish language. need city name in english, pls provide me steps fix issue.

thanks,

suhanya.m

it's defaulting spanish, it's popular locale. can specify locale=en english:

https://developer.foursquare.com/overview/versioning

here's new link like; note additional parameter @ end:

https://api.foursquare.com/v2/venues/search?ll=19.346523,-99.191292&query=gimn&oauth_token=z1nasaz5ieusdjajg1vmqo5yx410djxukbkahxn0fyib15bq&v=20150401&locale=en


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -