geo-master
v1.0.7
Published
Introducing Geo-Master: Your Ultimate Geolocation Toolkit
Readme
Introducing Geo-Master: Your Ultimate Geolocation Toolkit
Geo-Master is a comprehensive geolocation toolkit that simplifies the process of working with geographical data. Developed with ease of use and efficiency in mind, Geo-Master offers a suite of functions to retrieve location details, find nearby places, and calculate distances between points.
Key Features:
Get Latitude and Longitude: With Geo-Master, you can easily retrieve the latitude and longitude coordinates of any location. Simply provide the name or address of the place, and Geo-Master will handle the rest, utilizing the power of the RapidAPI geocoding service.
Find Nearby Places: Discover nearby points of interest, businesses, and attractions effortlessly with Geo-Master's nearby places feature. Whether you're looking for restaurants, hotels, or landmarks, Geo-Master provides accurate results based on your current location or specified coordinates.
Calculate Distance: Need to know the distance between two points? Geo-Master makes distance calculation a breeze. Whether you're planning a road trip, measuring property boundaries, or optimizing delivery routes, Geo-Master's distance calculation function provides accurate results in kilometers.
How to Use:
- Import Geo-Master into your project.
- Utilize the
getLatLongfunction to retrieve latitude and longitude coordinates based on location names or addresses. - Use the
getNearbyPlacesfunction to find nearby places based on specified Location and search queries. - Employ the
calculateDistancefunction to calculate the distance between two Places with use of coordinates.
With Geo-Master, harnessing the power of geolocation has never been easier. Streamline your workflow, enhance your applications, and unlock new possibilities with Geo-Master today!
async function main() { const location = 'Amravati'; const searchQuery = 'Ravi Nagar';
// Get latitude and longitude of location const { lat, lng } = await getLatLong(location); console.log('lat',lat); console.log('lng',lng);
// Get nearby places based on latitude and longitude const nearbyPlaces = await getNearbyPlaces(location, searchQuery);
// Log the nearby places console.log('Nearby Places:', nearbyPlaces);
const location1 = 'Amravati'; const location2 = 'Nagpur'; // Calculate distance between two points const distance = await calculateDistance(location1, location2); console.log('Distance:', distance, 'km'); }
main();
