Skip to content

Commit

Permalink
Increasing limit so that all pins are returned
Browse files Browse the repository at this point in the history
Increasing limit so that all pins are returned
  • Loading branch information
jorge-caballero authored Sep 29, 2020
1 parent eadb447 commit eab7cc5
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?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 endpoint = `${REACT_APP_API_ENDPOINT}/api/v1/location?limit=25000&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 eab7cc5

Please sign in to comment.