Gao de, Baidu cloud map search how to solve the polygon search problem?

Source: Internet
Author: User
Usage scenario: 1. The restaurant draws a polygon on the map to indicate the range that can be delivered (the restaurant is PIO on the cloud); 2. Locate the restaurant after the user opens the application; 3: automatically match the restaurant in which food can be delivered at the current location (that is, the user's location is in the restaurant delivery area). I checked the API and it seems that it is not implemented... scenario:

1: The restaurant draws a polygon on the map to indicate the range of delivery (the restaurant is PIO on the cloud );

2: After you open the application, locate it;

3: automatically match the restaurants that can deliver meals at the current location (I .e., the user's location is within the restaurant delivery area)

I have read that the API does not seem to be able to implement the functions I want. The functions implemented by the API are:

1: based on the user positioning point, based on the City range and search keywords, retrieve the PIO of the surrounding several kilometers (in fact, it is a round search)

2: polygon search is actually a variant above. polygon is defined by the polygon request parameter;

So this will not achieve the effect I want, as well as Baidu map.

To achieve the desired effect, you can only do this:
1: The restaurant's cloud map data should contain fields such as polygon, which I drew.
2: User positioning.
3: Send the user's latitude and longitude to the cloud map search API. The API uses polygon for calculation. The returned polygon field can overwrite the restaurant in the current user's location.

That is to say, the original mode is reversed. Some APIs use polygon to retrieve the range, instead of drawing an address to retrieve the PIO in the address;

After searching for a long time, it seems that AMAP APIs such as autonavi and Baidu cannot achieve what I want.

Thank you.

Reply content:

Scenario:

1: The restaurant draws a polygon on the map to indicate the range of delivery (the restaurant is PIO on the cloud );

2: After you open the application, locate it;

3: automatically match the restaurants that can deliver meals at the current location (I .e., the user's location is within the restaurant delivery area)

I have read that the API does not seem to be able to implement the functions I want. The functions implemented by the API are:

1: based on the user positioning point, based on the City range and search keywords, retrieve the PIO of the surrounding several kilometers (in fact, it is a round search)

2: polygon search is actually a variant above. polygon is defined by the polygon request parameter;

So this will not achieve the effect I want, as well as Baidu map.

To achieve the desired effect, you can only do this:
1: The restaurant's cloud map data should contain fields such as polygon, which I drew.
2: User positioning.
3: Send the user's latitude and longitude to the cloud map search API. The API uses polygon for calculation. The returned polygon field can overwrite the restaurant in the current user's location.

That is to say, the original mode is reversed. Some APIs use polygon to retrieve the range, instead of drawing an address to retrieve the PIO in the address;

After searching for a long time, it seems that AMAP APIs such as autonavi and Baidu cannot achieve what I want.

Thank you.

Nobody knows ?????????

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.