Production release 3520 - Change in the search center
Here's the changes we applied:
- Provide an address for the search center in /discover/here
- Improve the HTML Json rendeing
- Finland address format and Romania address formatting has been fixed
- The Size parameter against /explore influences just the number of places in the response
The search center for /discover/search /discover/explore and /discover/here has been modified, we wanted to have a future proof structure for the search center, so it would be easier for users of the api to implement against other endpoints and have consistency across all the discover endpoints.
In the old structure we had:
{
[INDENT] search: {
[INDENT] [COLOR="blue"]location: {[/COLOR][INDENT]
position: [lat, lon]
bbox: [w, s, e, n] //optional
[B] title: "name of place" //optional name of the place
[/B] address: "address" //optional the neighbourhood of the location used for the search
[B] href: "uri" //optional for moved search result shows the point form where the search started
moved: true //optional if present shows the search result is "moved"
[/B][COLOR="blue"][/INDENT]}[/COLOR][/INDENT]
}[/INDENT]
}
The new response has the location inside the context and the title, href and moved are inside the context instead.
{
[INDENT] search: {[INDENT]
[COLOR="blue"] context:{[INDENT]
[/COLOR] [B] title: "name of place" //optional name of the place
type:place //optional present only if the href link is present
href: "uri" //optional for moved search result shows the point form where the search started
moved: true //optional if present shows the search result is "moved"
[/B]
[COLOR="blue"] location: {[INDENT]
[/COLOR] position: [lat, lon]
bbox: [w, s, e, n] //optional
address: "address" //optional the neighbourhood of the location used for the search[/INDENT]
[COLOR="blue"] }[/INDENT]
}[/INDENT]
[/COLOR] }[/INDENT]
}
Re: Production release 3520 - Change in the search center
any news about search within radius?
Re: Production release 3520 - Change in the search center
Hi there,
I am communicating this with the team developing the API and will let you know asap when I have an update.
Best Regards,
Marko
Re: Production release 3520 - Change in the search center
Hi,
Thank you for bringing this up again!
We will send an update on this by Wednesday.
daniel.
Re: Production release 3520 - Change in the search center
Hi,
Search within a radius is currently still under discussion: We understand that this is a needed feature, but we are still investigating internally what would be the best way to retrieve the data internally. Thus, the implementation won’t come soon.
What we could do easier is to provide /discover/explore results (with an optional category parameter) restricted to a given area. Would this help your use case?
daniel.