reduced Searched Location count to 1
This commit is contained in:
parent
308246d073
commit
d85e6dd741
|
@ -16,7 +16,7 @@ export async function searchLocation(
|
|||
`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURI(
|
||||
location
|
||||
)}.json`,
|
||||
{ access_token: getMapboxToken(), limit: 3 }
|
||||
{ access_token: getMapboxToken(), limit: 1 }
|
||||
);
|
||||
return resp.data.features.length > 0 && resp.data.features[0].bbox;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue