Closed

is lat/lng point inside a complex spherical polygon php function

I have an array of complex spherical polygons that looks like this:

array (zone1 => array ("lat 1 lng1, lat 2 lng2", "lat 3 lng 3", "lat 4 lng 4", ... "lat xi lat yi"), zone ni)

I need a function called

GetZone(x_lat, x_lng, x_first_occurence=true)

If I pass a point into this function, I want you to scan the array of zones, and tell me which zone it's in. Since we are using lat/lng pairs you need to do a check based on which array zone it's in, and return the first occurrence of the zone's key that the lat/lng point is in.

If x_first_occurence is false, then you should return an array of all the keys in which the point is found.

I will provide you with sample data if this will make your life easier.

## Deliverables

Sample work to investigate:

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]~pbourke/geometry/insidepoly/

[url removed, login to view] 1) All deliverables will be considered "work made for hire" under U.S. Copyright law. Employer will receive exclusive and complete copyrights to all work purchased. (No 3rd party components unless all copyright ramifications are explained AND AGREED TO by the employer on the site per the worker's Worker Legal Agreement).

## Platform

php 5.3 function using only native functions

Skills: Engineering, Software Architecture, Software Testing

See more: using geometry, point in geometry, hire point, geometry 2, engineering au, c# point in polygon, check point software, a point in geometry, xi.com, true life, rpi, polygon, php function , ni, math engineering, Inside, complex software, php complex array, using complex, function sample

About the Employer:
( 201 reviews ) United States

Project ID: #3858521

6 freelancers are bidding on average $52 for this job

vhcs

See private message.

$21.25 USD in 2 days
(29 Reviews)
5.4
readyfacts

See private message.

$72.25 USD in 2 days
(28 Reviews)
4.3
rachitskiy

See private message.

$85 USD in 2 days
(4 Reviews)
3.5
rcafrompoland

See private message.

$25.5 USD in 2 days
(11 Reviews)
3.1
credentsolu

See private message.

$63.75 USD in 2 days
(4 Reviews)
3.3
kubertech

See private message.

$42.5 USD in 2 days
(0 Reviews)
0.0