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

The argument type 'LatLong' can't be assigned to the parameter type 'LatLng' #15

Closed
nalnir opened this issue Nov 2, 2021 · 1 comment

Comments

@nalnir
Copy link

nalnir commented Nov 2, 2021

I've seen a similar issue here that is marked as closed but I am not able to solve this. I use google_maps_flutter that uses LatLong class for latitude and longitude.
This package uses LatLng class for latitude and longitude.

Because of this a lot of functionalities are incompatible. So for example if I want to use:
PolygonUtil.isLocationOnPath(point, polyline, geodesic)
It expects LatLng for point and the List of LatLng of polylines. Because I'm getting LatLong from google_maps_flutter I get the error: The argument type 'LatLong' can't be assigned to the parameter type 'LatLng'.

Is there way to transform LatLong to LatLng and vice-versa?

@nalnir
Copy link
Author

nalnir commented Nov 4, 2021

I was successfully able to transform LatLong to mp.LatLng type so the issue is solved and now I am able to use the functionality.

@nalnir nalnir closed this as completed Nov 4, 2021
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