I'm working on an independent high school project where i'm trying to build a simple differential equation model for diffusion. I'm trying to overlay the model on top of a map to visualize spread, so for example, oil in water.
Right now I have a rectangular box that have the coordinates of ( 31.0195,-102.8072) NW, (19.2019, -102.8072) SW, (31.0195, -75.3963) NE, and (19.2019, -75.3963) SE. I am trying to build a 2D array of lat/long coordinates spaced evenly. For example, an array of lat/long coordinates that are 500m apart.
Is there a formula/algorithm where I can convert these coordinates to a distance, break the distance up into 500m chunks, and then get lat/long coordinates along the way (i.e. so I have lat/long coordinates every 500m)?