Nearby Cities
Returns a list of cities near another city. All calls for a Nearby Cities are in this format:Components
Components of the url describe what type of data you would like. They are separated by forward slashes.| Name | Description | Sample Values |
| state* | Two letter state abbreviation | ak CA |
| city* | Name of city, with spaces replaced with hyphens. If the city name has hyphens, replace those with underscores. Any other special characters should be URL-encoded | San Francisco becomes "San-Francisco"
Cardiff-By-The-Sea becomes "Cardiff_By_The_Sea" |
Parameters
The "key" parameter is what you use to send us your API key.| Name | Description | Sample Values |
| key* | Your API key | myAPIkey |
| radius | Radius in miles to confine search to. Defaults to 15 and can be in the range 1-100. | 10 |
| sort | How to sort the results. Defaults to "distance". Other options are "name" to sort by city name in alphabetical order, and "rating" to sort by GS city rating, highest first. | Valid values: "distance", "name", "rating" |






