JavaScript API v2.0


JavaScript API v2.0

Baidu Map JavaScript API is a set of application programming interfaces written in JavaScript language that can help you build functionality into your website A rich, highly interactive map application that supports browser-based map application development on PC and mobile, and supports map development with HTML5 features.

This API is free and open to the public. Starting from version v1.5, you need to apply for a key (ak) before you can use it. There is no limit on the number of times the interface can be used (except for the function of sending text messages).

Before you use the Baidu Map JavaScript API, please read the Baidu Map API Terms of Use. Please use it directly for any non-profit applications, and please refer to the instructions for use for commercial applications.

JavaScript API is the first to support HTTPS and is fully open. You can use it directly without applying. , it is also recommended that you authenticate your enterprise information. Web API products can obtain higher quotas.

Note: Only JavaScript API V2.0 and above support https, other JavaScript API versions do not support it. To use https service, please check your version and configuration precautions first.

Function introduction

js_fn15.jpg

    # Panoramic view display
  • new.png
  • Supports the display of multiple city panoramas (street views, indoor real-life images)

js_fnrelitu.jpg

##Heat map
  • new.pngVisually display the data distribution by setting the heat map radius, color, transparency and other parameters

js_fn14.jpg

Customized personalized map
  • new.pngSupports setting the display and hiding of map base map elements and display style (such as dark, light color)

js_fn1.jpg

Map display
  • Supports the display, panning and zooming of 2D, 3D and satellite images , drag and drop operations

js_fn4.jpg

#Local search
    One of the supported cities /Multi-keyword search
  • js_fn5.jpg

      ##Peripheral search
    • Supports the display of multiple city panoramas (street views, indoor real-life images)

    js_fn6.jpg

      Region search
    • Use visual range, circular area, and Bounds to perform area or Nationwide search

    js_fn7.jpg

    ##Bus search
    • City-wide bus search, Return to multiple transfer options

    js_fn8.jpg

    #Drive search
      Support nationwide Driving search, returns multiple transfer options

    js_fn9.jpg##Covering

    Support adding points, lines, surfaces, hot spots, labels, custom overlays, administrative divisions, etc.

    #Reverse/Geocodingjs_fn10.jpg

    Support conversion between Baidu coordinates and address information

    Real-time trafficjs_fn3.jpg

    Support real-time traffic display in multiple cities across the country
    ##Cloud Pocket Map

    js_fn2.jpgUser data is stored in the LBS cloud, and the map display of massive data can be realized using the Pocket Map function

    ##Sending location information via text message

    Supports sending location point information through the retrieval information window. js_fn11.jpg

    POI details display

    Open retrieval POI details (such as Descriptions, comments, flavors, etc.), supporting information windows, lists, and customized displayjs_fn12.jpg

    # #Arc drawing function
    Supports arc drawing function, and the starting and end points can be dragged to change the shape of the arc.

    js_fn13.jpg