How can I create a Waze app deep link url to get query results by crossroad or intersection? - waze

I want to create a deep link that will launch the Waze app and show the results of a search done on cross street terms. For example: "Stallings Rd and Old Greer Town Rd". So that then I can select my preference amongst the search results.
I've tried the following
waze://?q=stallings%20rd%20and%20greer%20town%20rd
and
waze://?q=stallings%20rd%20&%20greer%20town%20rd
But, the search results only show results for "Stallings Rd" or "Old Greer Town Rd" but not the results for "Stallings Rd and Old Greer Town Rd". When I open the app and do a search by "Stallings Rd and Old Greer Town Rd" it display exactly what I want. The result of "Stallings Rd and Old Greer Town Rd" near me.
I constructed the link by following the instructions here:
https://developers.google.com/waze/deeplinks
Any help would be greatly appreciated. Thanks in advance.

Related

Same name contained in different street names - geocode.arcgis.com

Hi everyone,
I've recently run into a problem when trying to geocode the position of a street whose name is contained into another street of the same city.
The street I was looking for is Via Messina 20, Milano (9.1751, 45.4835) , the other street is Via Antonello da Messina 20, Milano (9.1423, 45.4659).
In my web app I have a form with a text field that triggers suggest API call, using as input "Via Messina 20, Milano" returns as text "Via Messina 20, Milano" but the real result in terms of coordinates is the position of "Via Antonello da Messina 20, Milano" (here you can have a look at the JSON response). I get the very same result from the Try Geocoding feature on arcgis website (Geocoding and Place Search | ArcGIS for Developer ). The "expected" result is not even shown in the list of available points.
The same problem happens with find API call, returns one result which is once again the wrong street (here you can have a look at the JSON response).
To figure out why this was happening I tried a call to findAddressCandidates API and here the result is interesting: the "wrong" street is listed as first, while the "expected" one is in second place.
They both have Score 100% and they are both PointAddress.
So questions are:
why the street name I type and send to find and suggest is not the first and expected result of my research?
how can I achieve to show both of them at least in the suggest result list?
why if I type "Via Messina 20, Milano" the suggest result shows as first entry "Via Messina 20, Milano" but referring to the wrong location ? (it is indeed "Via Antonello da Messina 20, Milano)
is it a bug of the maps used by arcgis? (If I use google maps or open street maps it works fine)
Thanks,
LucioB
After speaking directly with ESRI ArcGis support they told me that this issue is already known and still open.
This problem has impact only on arcgis-online servers and so doesn't affect your local services. It was introduced after v. 10.2.X
You can have more details here and here
Apparently at the moment the only way to handle correctly the results is to invoke the suggest service together with the findAddressCandidates and display the result of the merge between one response and the other.
They said bug is going to be fixed with 10.4 version.

REST API Explore: How to get same list ordered like the search on Foursquare Website?

I'm using the REST API (venues platform) to get a list of the top 5 venues per destination and category, like they are listed in the search results on the foursquare website.
For example i do the following request using the explore api endpoint:
https://api.foursquare.com/v2/venues/explore?near=zurich,CH&query=College %26 University
I'm using the apias a not authenticated. I do not pass a radius, to get the default radius.
Now the results from the api is as follows:
1. ETH Hönggerberg HIL
2. Technopark
3. Kantonsschule Stadelhofen
4. Zürcher Hochschule der Künste, Departement Musik
5. Klubschule Migros
When i search on the Foursquare Website as follow (not logged in!):
https://foursquare.com/explore?near=Zurich%2C%20CH&q=College%20%26%20University
I get the following results listed on the website:
1. SBB Digital
2. Technopark
3. ETH Hönggerberg HIL
4. EF Education First
5. Klubschule Migros
Is it possible to get the same list, as shown on the website (in the same order) also from the api? If yes? how can i do that? how do i call the api or how do i have to sort the results from the api to get the same list?
First i tried to sort the api results by the rating field, but that doesn't do the trick at all. Because in this example no one of the first 30 results does have any rating.
Thank you in advance for your help!
Greets
Tom
Make sure you are making the explore request with the same user account as on the web. Also, it looks like your queries do not match up exactly. One is "College & University and the other is "college" - try matching up the queries and seeing if the results change.
Well meanwhile i got the answer from foursquare.
The trick is very simple: just have to add the following parameters to the api call: time=any and day=any.
Then you get the results ordered exactly the same way as on the foursquare webpage (when not authenticated).
Thank you david from foursquare! :-)

What kind of international code is used for identifying countries like

I need the name of the code in with:
ROM: Roma, Italy
BCN: Barcelona, Spain
MAD: Madrid, Spain
BUE: Buenos Aires, Argentina
PCM: Playa del Carmen, Mexico
PAR: Paris, France
LON: London, UK
etc...
I am developing an app that searches flights between countries and I need a full list of this kind of codes to interatct with another third party API.
I tried to google it but the only things that apears are flight sites instead of a wikipedia page or something.
Can you give me any pointer?
These are IATA (3 letter) Airport Codes.
This list may help you:
http://www.photius.com/wfb2001/airport_codes_alpha.html.
You could also use the official IATA search engine (Location code category).
If you want an officially sanctionned list, you apparently need to pay a hefty price.
It seems you are looking for IATA airport codes:
The assignment of these codes is governed by IATA Resolution 763, and
it is administered by IATA headquarters in Montreal. The codes are
published biannually in the IATA Airline Coding Directory.
Unfortunately, that authoritative list is quite expensive. But I am certain you can find many unofficial lists by searching the web.
Use 'World Airport Codes' search query and Google's your uncle. Below are some links from my search:
World Airport Codes
Airport Codes
Localized World Airport Codes
Openflights

FourSquare API is giving lots of result but not the result I expect

I am using FourSquare api for searching a particular business
https://api.foursquare.com/v2/users/search?name=Spa Gregories&oauth_token=ACCESS_TOKEN
it is giving lots of result but not the result i expect. that is
Spa Gregories
2710 Via De La Valle, Ste B-270
San Diego, California 92014
when i use https://foursquare.com/search?q=Spa+Gregories&near=san+diago then i got the exact result. So is their any way to find the business according the location. I have only name and city location to use for Search. I have also checked for the venues option but it asks for longitude and latitude.
thnks
Seems you're hitting the user search endpoint instead of the venue search.
Looks like this is the one you want:
https://developer.foursquare.com/docs/venues/search.html

Google Custom Search API, Howto return country specific results only

I am making some PHP code which takes a given search phrase and url and searches through the google search results until it finds the url (only first 100 results). My problem is, this is only working for the US. I have tried adding the "&cr=" option, but it still on returns US results.
The full URL I am using for the request is:
https://www.googleapis.com/customsearch/v1?key=API_KEY&cx=CX_VALUE&q=KEYWORD&cr=COUNTRY&alt=JSON
Does anyone have any experience with this? I want to be able to see UK results. Tried inserting &cr=countryUK , but still only does US results.
Thanks :)
Regards,
Stian
Use the gl=<country code> param to limit it to your country of choice (so gl=gb for the uk).
More info here:
http://googleajaxsearchapi.blogspot.com/2009/10/web-search-in-your-country.html