Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: Uncaught Error: Class "Location\Coordinate" not found in .... #85

Closed
jwpv opened this issue Jan 11, 2022 · 0 comments
Closed

Comments

@jwpv
Copy link

jwpv commented Jan 11, 2022

When running a php script a get this error:
PHP Fatal error: Uncaught Error: Class "Location\Coordinate" not found in ...
I am using php 8.1.1 (installed via XAMPP), installed the composer via the installer en ran composer require mjaschen/phpgeo.
The script is a copy from the website:

getDistance($coordinate1, $coordinate2); ?>

My noob fault. Added
require 'vendor/autoload.php';
and it works now!

@jwpv jwpv closed this as completed Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant