@ahmadlamber/getnearestlatitudeandlongitudefromarray
v1.9.0
Published
Get nearest Latitudeand Longitude from array
Downloads
7
Readme
��#�#� �I�n�s�t�a�l�l�
�
�
�
��
��s�h�
�
�n�p�m� �i� �@�a�h�m�a�d�l�a�m�b�e�r�/�g�e�t�n�e�a�r�e�s�t�l�a�t�i�t�u�d�e�a�n�d�l�o�n�g�i�t�u�d�e�f�r�o�m�a�r�r�a�y�
�
�
��
�
�
�
�
�
�
�#�#� �U�s�a�g�e�
�
�
�
�
�
��
��t�s�
�
�i�m�p�o�r�t� �G�e�t�n�e�a�r�e�s�t�L�a�t�i�t�u�d�e�a�n�d�L�o�n�g�i�t�u�d�e�f�r�o�m�a�r�r�a�y� �f�r�o�m� �'�@�a�h�m�a�d�l�a�m�b�e�r�/�g�e�t�n�e�a�r�e�s�t�l�a�t�i�t�u�d�e�a�n�d�l�o�n�g�i�t�u�d�e�f�r�o�m�a�r�r�a�y�'�
�
�
��
�
�
�
�
�
�
�#�#� �F�u�n�c�t�i�o�n�s� �a�n�d� �E�x�a�m�p�l�e� �
�
�
�
��
��t�s�
�
� �a�r�r�a�y� �=� �[� �{�
�
� � � � �"�t�i�m�e�s�t�a�m�p�M�s�"� �:� �"�1�3�8�9�6�3�3�6�8�9�5�6�4�"�,�
�
� � � � �"�l�a�t�i�t�u�d�e�E�7�"� �:� �4�2�3�3�7�3�8�8�7�7�,�
�
� � � � �"�l�o�n�g�i�t�u�d�e�E�7�"� �:� �1�0�6�6�5�1�0�7�1�4�,�
�
� � � � �"�a�c�c�u�r�a�c�y�"� �:� �2�0�
�
� � �}�,� �{�
�
� � � � �"�t�i�m�e�s�t�a�m�p�M�s�"� �:� �"�1�4�4�6�0�4�0�1�3�6�1�0�3�"�,�
�
� � � � �"�l�a�t�i�t�u�d�e�E�7�"� �:� �3�9�7�4�3�4�9�2�2�6�,�
�
� � � � �"�l�o�n�g�i�t�u�d�e�E�7�"� �:� �1�1�5�7�7�6�5�0�7�4�,�
�
� � � � �"�a�c�c�u�r�a�c�y�"� �:� �1�2�1�2�
�
� � �}�,� �{�
�
� � � � �"�t�i�m�e�s�t�a�m�p�M�s�"� �:� �"�1�5�0�2�2�0�3�3�2�7�7�5�7�"�,�
�
� � � � �"�l�a�t�i�t�u�d�e�E�7�"� �:� �4�0�9�4�2�5�1�3�3�9�,�
�
� � � � �"�l�o�n�g�i�t�u�d�e�E�7�"� �:� �3�7�2�8�1�3�5�3�1�8�,�
�
� � � � �"�a�c�c�u�r�a�c�y�"� �:� �1�6�
�
� � �}� �]� � �;� �
�
�
�
�v�a�r� �p�o�n�i�t� �=� �{�
�
� � �"�l�a�t�i�t�u�d�e�E�7�"� �:� �4�0�9�4�2�5�1�3�3�9�,�
�
� � � � �"�l�o�n�g�i�t�u�d�e�E�7�"� �:� �3�7�2�8�1�3�5�3�1�8�,�
�
�}� �
�
�
�
� � �v�a�r� � �r�u�s�l�t� �=� �G�e�t�n�e�a�r�e�s�t�L�a�t�i�t�u�d�e�a�n�d�L�o�n�g�i�t�u�d�e�f�r�o�m�a�r�r�a�y�(�a�r�r�a�y� �,�p�o�n�i�t� � �)�
�
�
�
�/�/� �{�
�
�/�/� � � � � �"�M�i�n�i�m�u�m�d�i�s�t�a�n�c�e�i�n�k�l�m�"�:� �0�,�
�
�/�/� � � � � �"�l�a�t�"�:� �4�0�9�4�2�5�1�3�3�9�,�
�
�/�/� � � � � �"�l�n�g�"�:� �3�7�2�8�1�3�5�3�1�8�
�
�/�/� �}�
�
�
�
�
��
�
�
�
�
�
�
�<�!�-�-� �#� �F�u�n�c�t�i�o�n�s� �a�n�d� �E�x�a�m�p�l�e� �
�
�
�
�
�
�
�
� �v�a�r� �a�r�r�a�y� �=� �[� �{�
�
� � � � �"�t�i�m�e�s�t�a�m�p�M�s�"� �:� �"�1�3�8�9�6�3�3�6�8�9�5�6�4�"�,�
�
� � � � �"�l�a�t�i�t�u�d�e�E�7�"� �:� �4�2�3�3�7�3�8�8�7�7�,�
�
� � � � �"�l�o�n�g�i�t�u�d�e�E�7�"� �:� �1�0�6�6�5�1�0�7�1�4�,�
�
� � � � �"�a�c�c�u�r�a�c�y�"� �:� �2�0�
�
� � �}�,� �{�
�
� � � � �"�t�i�m�e�s�t�a�m�p�M�s�"� �:� �"�1�4�4�6�0�4�0�1�3�6�1�0�3�"�,�
�
� � � � �"�l�a�t�i�t�u�d�e�E�7�"� �:� �3�9�7�4�3�4�9�2�2�6�,�
�
� � � � �"�l�o�n�g�i�t�u�d�e�E�7�"� �:� �1�1�5�7�7�6�5�0�7�4�,�
�
� � � � �"�a�c�c�u�r�a�c�y�"� �:� �1�2�1�2�
�
� � �}�,� �{�
�
� � � � �"�t�i�m�e�s�t�a�m�p�M�s�"� �:� �"�1�5�0�2�2�0�3�3�2�7�7�5�7�"�,�
�
� � � � �"�l�a�t�i�t�u�d�e�E�7�"� �:� �4�0�9�4�2�5�1�3�3�9�,�
�
� � � � �"�l�o�n�g�i�t�u�d�e�E�7�"� �:� �3�7�2�8�1�3�5�3�1�8�,�
�
� � � � �"�a�c�c�u�r�a�c�y�"� �:� �1�6�
�
� � �}� �]� � �;� �
�
�
�
�#� � � �v�a�r� �p�o�n�i�t� �=� �{�
�
� � �"�l�a�t�i�t�u�d�e�E�7�"� �:� �4�0�9�4�2�5�1�3�3�9�,�
�
� � � � �"�l�o�n�g�i�t�u�d�e�E�7�"� �:� �3�7�2�8�1�3�5�3�1�8�,�
�
�}� �
�
�#� � �v�a�r� � �r�u�s�l�t� �=� �G�e�t�n�e�a�r�e�s�t�L�a�t�i�t�u�d�e�a�n�d�L�o�n�g�i�t�u�d�e�f�r�o�m�a�r�r�a�y�(�a�r�r�a�y� �,�p�o�n�i�t� � �)�
�
�
�
�{�
�
� � � � �"�M�i�n�i�m�u�m�d�i�s�t�a�n�c�e�i�n�k�l�m�"�:� �0�,�
�
� � � � �"�l�a�t�"�:� �4�0�9�4�2�5�1�3�3�9�,�
�
� � � � �"�l�n�g�"�:� �3�7�2�8�1�3�5�3�1�8�
�
�}�
�
� �-�-�>�
�
�