GalliMethods
get360Image
It is used to fetch a 360-degree image from a location-based service, and it includes error handling to handle any potential issues that may arise during the image retrieval process.
try { // Call the get360Image method var image = await methods.get360Image( LatLng(27.67716169091915, 85.32351400940793), threshold: 20, ); // Now you can use the 'image' variable to access the 360-degree image data or URL print('360-degree image URL: $image'); } catch (e) { // Handle any errors that may occur print('Error fetching 360-degree image: $e'); }
autoComplete
It will autocomplete the search result on the basis of input string
methods.autoComplete("san");
getRoute
When you call methods.getRoute, it sends a request to a routing or mapping service to calculate and provide a route or directions from the source location to the destination location. The service will respond with information about the route, which may include step-by-step directions, distance, estimated travel time, and other relevant details.
methods.getRoute( source: LatLng(27.67716169091915, 85.32351400940793), destination: LatLng(27.67649922688999, 85.32053625519644));
reverse
When we call a reverse method with a specific latitude and longitude coordinate represented as a LatLng object. This code is likely related to performing reverse geocoding, which is the process of converting geographic coordinates (latitude and longitude) into human-readable location information, such as an address or place name.
methods.reverse(LatLng(27.67716169091915, 85.32351400940793));
search
It appears to be calling a search method with two arguments: a search query and a LatLng object representing geographic coordinates. This code is likely related to searching for a specific location or place based on the provided query and coordinates.
methods.search( 'houseNumber', LatLng(27.67716169091915, 85.32351400940793));
getNavigation