Gold, Baidu Cloud image retrieval How to solve the problem of polygon retrieval?
Source: Internet
Author: User
KeywordsPHPHTMLHTML5 Baidu Map API German lbs
Usage scenarios:
1: The restaurant draws a polygon on the map to indicate the range to be delivered (the restaurant is the Pio on the cloud);
2: After the user opens the application, locates;
3: Automatically match the restaurant where the current location can be delivered (i.e. the user's location is within the restaurant delivery area)
I looked at the API as if I could not implement the function I want, the API implements the function is:
1: Based on the user locator point, according to the city range, search for keywords, retrieve around how many kilometers of Pio (in fact, the surrounding circular search)
2: Polygon retrieval is actually the above variant, defined by the polygon request parameter polygon;
So this will not achieve the effect I want to see the Baidu map is also the case.
If you want to achieve the effect I want, this is the only way: 1: The restaurant's cloud data should have polygon such fields, this data is I draw out. 2: User orientation. 3: The user's latitude and longitude to the cloud image retrieval Api,api using polygon to calculate, return polygon field can overwrite the current user location of the restaurant.
In other words, the original mode is reversed, there is the API to use polygon to retrieve the scope, rather than the user to draw an address, retrieve the address of Pio;
Looking for a long time, seemingly gold, Baidu and other maps of the API can not achieve the effect I want.
Please help me to see the great god thank you.
Reply content:
Usage scenarios:
1: The restaurant draws a polygon on the map to indicate the range to be delivered (the restaurant is the Pio on the cloud);
2: After the user opens the application, locates;
3: Automatically match the restaurant where the current location can be delivered (i.e. the user's location is within the restaurant delivery area)
I looked at the API as if I could not implement the function I want, the API implements the function is:
1: Based on the user locator point, according to the city range, search for keywords, retrieve around how many kilometers of Pio (in fact, the surrounding circular search)
2: Polygon retrieval is actually the above variant, defined by the polygon request parameter polygon;
So this will not achieve the effect I want to see the Baidu map is also the case.
If you want to achieve the effect I want, this is the only way: 1: The restaurant's cloud data should have polygon such fields, this data is I draw out. 2: User orientation. 3: The user's latitude and longitude to the cloud image retrieval Api,api using polygon to calculate, return polygon field can overwrite the current user location of the restaurant.
In other words, the original mode is reversed, there is the API to use polygon to retrieve the scope, rather than the user to draw an address, retrieve the address of Pio;
Looking for a long time, seemingly gold, Baidu and other maps of the API can not achieve the effect I want.
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.