@@ -19,13 +19,15 @@ DantSu\OpenStreetMapStaticAPI\MapData convert latitude and longitude to image pi
1919- * (static)* [ latToYTile] ( #lattoytile )
2020- * (static)* [ xTileToLng] ( #xtiletolng )
2121- * (static)* [ yTileToLat] ( #ytiletolat )
22+ - * (static)* [ getCenter] ( #getcenter )
2223- [ __ construct] ( #-__construct )
2324- [ getLatLngTopLeft] ( #-getlatlngtopleft )
2425- [ getLatLngTopRight] ( #-getlatlngtopright )
2526- [ getLatLngBottomLeft] ( #-getlatlngbottomleft )
2627- [ getLatLngBottomRight] ( #-getlatlngbottomright )
2728- [ getOutputSize] ( #-getoutputsize )
2829- [ getZoom] ( #-getzoom )
30+ - [ getTileSize] ( #-gettilesize )
2931- [ getTileTopLeft] ( #-gettiletopleft )
3032- [ getTileBottomRight] ( #-gettilebottomright )
3133- [ getMapCropTopLeft] ( #-getmapcroptopleft )
@@ -49,6 +51,7 @@ Convert longitude and zoom to horizontal OpenStreetMap tile number and pixel pos
4951| -----------| ------| -------------|
5052| ` lon ` | ** float** | Longitude |
5153| ` zoom ` | ** int** | Zoom |
54+ | ` tileSize ` | ** int** | Tile size |
5255
5356
5457#### Return Value:
@@ -75,6 +78,7 @@ Convert latitude and zoom to vertical OpenStreetMap tile number and pixel positi
7578| -----------| ------| -------------|
7679| ` lat ` | ** float** | Latitude |
7780| ` zoom ` | ** int** | Zoom |
81+ | ` tileSize ` | ** int** | Tile size |
7882
7983
8084#### Return Value:
@@ -102,6 +106,7 @@ Convert horizontal OpenStreetMap tile number ad zoom to longitude.
102106| ` id ` | ** int** | Horizontal OpenStreetMap tile id |
103107| ` position ` | ** int** | Horizontal pixel position on tile |
104108| ` zoom ` | ** int** | Zoom |
109+ | ` tileSize ` | ** int** | Tile size |
105110
106111
107112#### Return Value:
@@ -129,6 +134,7 @@ Convert vertical OpenStreetMap tile number and zoom to latitude.
129134| ` id ` | ** int** | Vertical OpenStreetMap tile id |
130135| ` position ` | ** int** | Vertical pixel position on tile |
131136| ` zoom ` | ** int** | Zoom |
137+ | ` tileSize ` | ** int** | Tile size |
132138
133139
134140#### Return Value:
@@ -137,6 +143,32 @@ Convert vertical OpenStreetMap tile number and zoom to latitude.
137143
138144
139145
146+ ---
147+ ### ::getCenter
148+
149+ Get center between two coordinates.
150+
151+
152+
153+ * This method is ** static** .
154+
155+
156+
157+
158+ #### Parameters:
159+
160+ | Parameter | Type | Description |
161+ | -----------| ------| -------------|
162+ | ` point1 ` | ** \DantSu\OpenStreetMapStaticAPI\LatLng** | Vertical OpenStreetMap tile id |
163+ | ` point2 ` | ** \DantSu\OpenStreetMapStaticAPI\LatLng** | Vertical pixel position on tile |
164+
165+
166+ #### Return Value:
167+
168+ ** \DantSu\OpenStreetMapStaticAPI\LatLng** : midpoint between the given coordinates
169+
170+
171+
140172---
141173### ->__ construct
142174
@@ -156,6 +188,7 @@ Convert vertical OpenStreetMap tile number and zoom to latitude.
156188| ` centerMap ` | ** \DantSu\OpenStreetMapStaticAPI\LatLng** | |
157189| ` zoom ` | ** int** | |
158190| ` outputSize ` | ** \DantSu\OpenStreetMapStaticAPI\XY** | |
191+ | ` tileSize ` | ** int** | |
159192
160193
161194
@@ -274,6 +307,25 @@ Get the zoom
274307
275308
276309
310+ ---
311+ ### ->getTileSize
312+
313+ Get tile size
314+
315+
316+
317+
318+
319+
320+
321+
322+
323+ #### Return Value:
324+
325+ ** int** : tile size
326+
327+
328+
277329---
278330### ->getTileTopLeft
279331
@@ -379,4 +431,4 @@ Convert a latitude and longitude to a XY pixel position in the image
379431
380432
381433---
382- > Automatically generated from source code comments on 2022-05-31 using [ phpDocumentor] ( http://www.phpdoc.org/ )
434+ > Automatically generated from source code comments on 2023-07-30 using [ phpDocumentor] ( http://www.phpdoc.org/ )
0 commit comments