Hello I am using googleapi to retrieve place details.
https://developers.google.com/places/webservice/details
i.e.
https://maps.googleapis.com/maps/api/place/details/xml?placeid=ZZZZ&key=YYYYY
I get successfully address, place name, reviews... etc
But how would I retrieve contact information detail?/ place detail? Is there a different api i need to call? Thanks for reading. (circled in red is the information i am looking for).. using serverside C# code
example
Check the API reference documentation for :
google.maps.places.PlacesService(map);
and this function will be your friend!
::getDetails();
I suppose you're looking for premium service of google. That's the reason why you can't find your field in return value of google. Check this out: https://developers.google.com/places/webservice/details#PremiumData
review_summary includes a rich and concise review curated by Google's
editorial staff. This field will be absent unless you pass the
extensions=review_summary parameter in your details request. Note that
this field may not be available in the requested language.
Related
I've looked through all the OneNote API documentation and samples, and I can only find a single API call, Create Page, which only seems to accept HTML content for that page. I have other metadata that I want to pass in from another service, namely tags.
Is there any way to do this currently?
You are correct. As of today, the current API only supports a simple Create page method and we don't support tags yet. But we will be adding new features over time quickly; please see and comment on our API roadmap. Also, you can submit or vote on your feature suggestion at the OneNote API Feedback site.
-
James
I need to get live information like news, photos, content, videos link, and etc from the website and display it on my app.
Please let me know how to do it. I saw some samples, they get info using web client. mostly its for string content. for me, i display some photos and some other reference link and etc.,
Anyone help me how to do it.
It depends on the site from which you want to fetch the data. Many popular sites implement their own API's for providing the data. For example, Twitter API and Facebook API.
And the data is provided to us in the form of XML or JSON in general, which you need to parse in your app and show it in your UI.
Note: Whatever may be the data format(images or videos), they are provided as the http links which you need to supply as the source to your UI components.
For example, insert an image tag in UI
<image Name="myImage"/>
and then after parsing your web response, supply its source from your response like this
myImage.Source = response.imageSource;
(This is just for an overview, not a complete solution)
You may want to review the Code Samples here :-
http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx
Your question is very broad as there are many factors involved in creating a Windows Phone application so you need to look at various samples, take the bits you want from those samples and then create something, it is very difficult to create an app for someone in a forum post, this is why you are not going to get a direct answer to your question.
Going to Google code page I couldn't find the API I should use to perform a basic web search. All other resources I found point to Google Base API but it is no longer available.
What I need is to be able to sumbit a query string and get back a list with site names. For example, I need to find the first results when searching for "champions league" as if typing the query on the Google page.
What is the correct API to use for text searches these days? Are there any librariries for PHP or C Sharp?
EDIT: I found PHP code on the Net that sends requests to ajax.googleapis.com/ajax/services/search/web. I checked it out and it actually returns search results :) Do you know where I can find info for this endpoint and from what API is it part? Also, Custom Search API as suggested by #Rickard doesn't seem to provide this basic functionality. I tried to use it but it asks me to enter the sites I want to search in. I don't want to search particular sites but all.
Thank you
Check out the Google Custom Search API
I found this to work just fine, as the Google API is great unless you need to search +100 times per day, then they charge you. This is a simple solution to this problem, but only works for string searches and not image searches.
Search for "turtle":
string searchString = "Turtle";
System.Diagnostics.Process.Start("www.google.com/search?q=" + searchString);
Bing Maps API has been great for figuring out all my GPS information sent from a WP7 phone. But I'm not sure how to deal with Zip Codes. I know it varies per country. I'm curious what is the best way to get a Zip code (or similar) from a latitude/longitude. Bing Maps doesn't always return a City with Area code. Sometimes it will bring back "Populated Area" such as the bay area or San Francisco. The zip node in the XML will be blank.
Are there hacks to get around this? Or am I looking at some other complicated calculation and a second web service call?
I ended up using the google api to get this type of information. I wanted to get the suburb I was in and Bing would not return this. May be worth a look to see if Google will return the zip code.
You can use the Locations API to get the location information for a specified point. If you only want the postal code for the specified location, then you just set the includeEntityTypes parameter to PostCode1, though you can request several as a comma-separated list.
As you are no doubt aware, you can also choose between an XML or JSON response.
I'm not sure if there's an easier way to do this with the API, but you can definitely accomplish this without using another service although it's a bit of extra work. You can add a custom tile layer using shape files such as the ones provided here: http://www.census.gov/geo/www/cob/zt_metadata.html
I'm wanting to use google maps and see a million ways to do it on the web. Some are javascript methods and some are asp.net server components with which I have hit and miss luck. What's the easiest and most reliable way using c# and asp.net?
I have my location data including geocodes in a database. I want to provide users a method to do a lookup for certain locations. From there, my code will provide a table of geocodes to google maps with markers on the map corresponding to the found entries. Users can see each entry and need to be able to tell which is which if multiple rows are returned.
Is there a good way to do this?
The Google Maps API is accessed via JavaScript (any server controls are just abstracting this away from you). In the case you described, you would need to dynamically output the required JavaScript to tell the maps API what to display.
See http://dotnet.sys-con.com/node/171162
There are a few server controls to do it, like this, but you have to learn how to do things in one way (server control) or another (Javascript Google API).
I recommend using the Google API, since it has more samples all over the web, and you can use new features implemented by Google right after they release them and don't have to wait for the server control developer to do it.
I would recommend using direct JavaScript to create the Google Maps. It's fairly straight forward and then you will be able to understand what's going on behind the scenes.
Google has some pretty good tutorials and documentation to get you up and running quick. Once you add one to your site, it will become very easy to setup the rest of the customization that you need.
Take a look at this site for examples.
http://code.google.com/apis/maps/documentation/examples/
As usual I point to ComponentOne who has a nice SilverLight control for this that can use google-maps or Microsofts Live Maps, it uses Silverlight Deep Zoom to handle it nicely:
http://www.componentone.com/SuperProducts/MapsSilverlight/
Live example:
http://demo.componentone.com/Silverlight/Factories/
(I'm not from ComponentOne, just a satisfied customer) ;)
I know you can do it yourself with scripts and other ways, but its just so much more fun to use code allreade written. ;)
Best .NET Wrapper for Google Maps or Yahoo Maps?
BTW: I found a great post here that has an example on how to do a store lookup. Works really well. I recommend!!
http://blog.donnfelker.com/post/HOWTO-Build-a-Store-Locator-in-ASPNET.aspx
Check out this example: Data driven Google Maps in ASP.Net
I used ASP.Net Ajax to create a web-service that is callable from JavaScript.
The web-service talks to the database and fills a very basic object. ASP.Net Ajax, then makes the object available to my client javascript. The rest is easy: In the client, you call the webservice from Javascript, read the data returned and populate Google Maps, using simple Google Maps API calls.
Check out the site at link text
Please, try my GoogleMaps control for ASP.NET