We are looking for someone who can solve our problem.
We have multiple functions that return geo coordinates for a given start location in a radius that is unknown for us.
We need to create a function that does the same, but in a specified radius search radius.
Here an example code in typescript:
```
type LatLng = {
lat: number;
lng: number;
}
// --- CREATE A MOCK FUNCTION FOR TESTING ---
function findLocationsNearbyStartLocationA(startLocation: LatLng): LatLng[] {
const UNKOWN_SEARCH_RADIUS = 50; // This is constant but unknown.
const numberOfFoundLocations = random(); // Between zero (inclusive) and infinity
const locations: LatLng[] = [];
for (let i = 0; i < numberOfFoundLocations; i++) {
locations[i] = random(startLocation, UNKOWN_SEARCH_RADIUS);
}
return locations;
}
// --- CREATE A MOCK FUNCTION FOR TESTING
function findLocationsNearbyStartLocationB(startLocation: LatLng, radius: number): LatLng[] {
// --- YOUR CODE ---
return findLocationsNearbyStartLocationA(startLocation);
// --- YOUR CODE ---
}
// --- EXAMPLE OF USAGE ---
findLocationsNearbyStartLocationB({
lat: -42.24564,
lng: 150.13504
}, 900);
// --- EXAMPLE OF USAGE ---
```
The programming language u use doesn't matter. Use what is best for u. If you a free of choice, then use typescript.
Be aware that the function can also return zero locations.
Hi,
I have gone through the requirements.
Good experience in creating custom softwares.
Will do this application using Laravel framework.
I am immediately available for this job.
Please contact for further discussions.
Regards,
Keval
$140 USD in 7 days
0.0 (0 reviews)
0.0
0.0
7 freelancers are bidding on average $203 USD for this job
Hi, I can give this a shot for you and probably be done within 5 days. Kindly reach out and let's you would like to get started and finalise offer. I look forward to reading from you
I can help you with your research. After reading your project details, I feel, I am the best option for you to fulfill this project with 100% perfection. I am working in this industry since 2014 and I have served more than 1200 clients with full amount of satisfaction. I can deliver your work within your given deadline and budget. Please give me a chance. I PROMISE, You will find it GREAT.
Thanks, please send me complete details via freelancer chat.
hello, I am hardworking person. I know that how to complete my work very well and I try complete my work before given time. I do. You can see giving me a chance.
thank you.