Skip to content

Commit

Permalink
Increasing the results limit
Browse files Browse the repository at this point in the history
Increasing the fetched limit to 20000
  • Loading branch information
jorge-caballero authored Jul 1, 2020
1 parent f0a33b6 commit d2f14e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/fetchPins.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const fetchPins = async (
source_longitude: number = defaultCenter.longitude,
distance: number = 3000,
) => {
const endpoint = `${REACT_APP_API_ENDPOINT}/api/v1/location?source_latitude=${source_latitude}&source_longitude=${source_longitude}&distance=${distance}&fields=location_id,location_name,location_address_locality,location_address_region,location_latitude,location_longitude,location_status`;
const endpoint = `${REACT_APP_API_ENDPOINT}/api/v1/location?limit=20000&source_latitude=${source_latitude}&source_longitude=${source_longitude}&distance=${distance}&fields=location_id,location_name,location_address_locality,location_address_region,location_latitude,location_longitude,location_status`;
const results: Response = await fetch(endpoint);
const data = await results.json();
const keys = Object.keys(searchFilters ?? {});
Expand Down

0 comments on commit d2f14e0

Please sign in to comment.