Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions backend/api/src/search-near-city.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import {APIHandler} from './helpers/endpoint'
import {geodbFetch} from "common/geodb";

const searchNearCityMain = async (cityId: string, radius: number) => {
// Limit to 10 cities for now for free plan, was 100 before (may need to buy plan)
const endpoint = `/cities/${cityId}/nearbyCities?radius=${radius}&offset=0&sort=-population&limit=10`
const endpoint = `/cities/${cityId}/nearbyCities?radius=${radius}&offset=0&sort=-population&limit=100`
return await geodbFetch(endpoint)
}

Expand Down
2 changes: 1 addition & 1 deletion web/components/search-location.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const useCitySearch = () => {
} else {
fetchData()
}
}, 1000)
}, 400)

return () => {
clearTimeout(debounce)
Expand Down
Loading