
# GeographicConverter





* Full name: `\DantSu\OpenStreetMapStaticAPI\Utils\GeographicConverter`



## Methods

- *(static)* [earthRadiusAtLatitude](#earthradiusatlatitude) 
- *(static)* [metersToLatLng](#meterstolatlng) 

### ::earthRadiusAtLatitude

Calculate the earth radius at the given latitude



* This method is **static**.




#### Parameters:

| Parameter | Type | Description |
|-----------|------|-------------|
| `lat` | **float** |  |


#### Return Value:

 **float** : 



---
### ::metersToLatLng

Convert distance and angle from a point to latitude and longitude



* This method is **static**.




#### Parameters:

| Parameter | Type | Description |
|-----------|------|-------------|
| `from` | **\DantSu\OpenStreetMapStaticAPI\LatLng** | Starting coordinate |
| `distance` | **float** | Distance in meters |
| `angle` | **float** | Angle in degrees |


#### Return Value:

 **\DantSu\OpenStreetMapStaticAPI\LatLng** : 



---


---
> Automatically generated from source code comments on 2022-05-31 using [phpDocumentor](http://www.phpdoc.org/)
