PLACE DETAIL – LOCATION DETAILS INFORMATION

Overview of Place Detail

The Place Detail API is a service to retrieve detailed information about a location. This information can include the precise geographical location, address, type of business (if applicable), special features of the location such as pricing, ratings, operating hours, and contact information. Mapfusion Place Detail API allows you to query detailed information about a location based on its unique Place ID.

Why use Place Detail?

Place Detail helps create location-aware features to make it easier for your users to obtain detailed location data. The available data through Place Detail is built upon one of the most accurate, up-to-date, and comprehensive location models in the real world. Some practical use cases include:

  • Display detailed information about restaurants, cafes, hotels, public services, including location, operational status, contact information, reviews, and specific images. This provides useful data for planning trips.
  • Add detailed location information.

Practical Application of Place Detail

You can use Place Detail to retrieve detailed information about a specific location.

Many APIs on the Map Fusion platform support retrieving Place IDs, which help identify a location in Map Fusion location database and on Map Fusion There are several ways to obtain a Place ID, including from the Autocomplete API and the Geocode API.

Once you have the Place ID, you can use Place Detail to request additional information about a specific business or location, such as full address, phone number, user ratings, and reviews.

How to integrate Map Fusion Place Detail

Getting Started:

First, you need to register an account and create your Map fusion API key by following the detailed instructions provided here.

URL: /place/detail

Method: GET

Example Request:

https://api.mapfusion.io/v1/place/details?api_key=[your_api_key]&place_id=iamdnlJlHh1RqhLjZAcLHYWvAbwncg0ICoQC5GU0bheeqYaqcQrtCAa4THgllGuRQCpQwpGYKnhkKrWOnGmbiXQmUOKo'
Parameter Description Example
place_id ID of the location iamdnlJlHh1RqhLjZAcLHYWvAbwncg0ICoQC5GU0bheeqYaqcQrtCAa4THgllGuRQCpQwpGYKnhkKrWOnGmbiXQmUOKo

 

Example Response:

{
    "result": {
        "address_components": [
            {
                "long_name": "Nan Yagon Resort & Restaurant",
                "short_name": "Nan Yagon Resort & Restaurant"
            },
            {
                "long_name": "Moke Pa Lin",
                "short_name": "Moke Pa Lin"
            },
            {
                "long_name": "Myanmar",
                "short_name": "Myanmar"
            }
        ],
        "place_id": "2937059",
        "formatted_address": "Nan Yagon Resort & Restaurant, Moke Pa Lin, Myanmar",
        "geometry": {
            "location": {
                "lat": 17.4197795,
                "lng": 96.94743629999999
            }
        },
        "plus_code": {
            "compound_code": "",
            "global_code": ""
        },
        "name": "Nan Yagon Resort & Restaurant",
        "url": "",
        "types": []
    },
    "status": "OK"
}

Parameter Description Example
result Contains an array of address information and geocoded geometry information..
place_id The unique identifier of the place. 0WmA4vbeody2J9AEvVM9YE3ZN85z7Mrw
formatted_address Includes all necessary information such as house number, street name, district, city/province, and country. Typically used to display detailed location or address information. Shwedagon Pagoda, Yangon, Myanmar
geometry A data section that describes the geographical location of an object, including longitude and latitude. “geometry”: {

“location”:

{

“lat”: 16.8409,

“lng”: 96.1735

}

}

location Latitude and longitude coordinates of the place. Shwedagon Pagoda
name The name of the place. Shwedagon Pagoda
status The status code, “ok” means success, anything else indicates failure. ok

Conclusion

The MapFusion Place Detail API delivers precise and comprehensive location information, enhancing user experience and optimizing map-based services. By providing details such as addresses, ratings, images, and contact information, this API is a valuable tool for ride-hailing, travel, e-commerce, and various other industries.

Leverage the MapFusion Place Detail API to develop intelligent solutions, improve search accuracy, and offer a seamless experience for your users.