Finding likely locations in Xamarin using google maps API - c#

I am working on a Xamarin iOS project trying to display a list of the most likely locations based on the user's GPS coordinates using either the Place Picker or GMSPlacePickerViewController from the google maps API, as shown in this Swift tutorial.
However I can't seem to find any decent tutorials using C#. I don't want to display the map to users I simply want to retrieve the list of most likely locations based on the coordinates.
Any guidance would be greatly appreciated as I'm at a bit of a loss about how to use the google maps API to achieve this.

Okay answering this for anyone coming after me and trying to do something similar.After lots of searching I have realised it is possible to use the nearbySearch method from the Google Places API Web Service to retrieve a list of addresses near particular coordinates within a specific radius (in metres). You can optionally specify the type of addresses you are searching for, e.g. Restaurants.
Not sure how I missed this but there is a Place Search demo at the bottom of this page;
https://developers.google.com/places/web-service/

Related

Bing Maps API in Bot Framework

Using .Net framework to building application. I have created a Bing Maps API service in Azure and I want to integrate it in a chat bot created using Bot Framework. I have generated the key for using map.
I am able to show list of locations based on a keyword. I am using https://dev.virtualearth.net/REST/v1/Locations?form={FormCode}&q={keyword}&key={BingKey}. It works fine and I am able to see the locations as Maps.
Now I want to search things like doctors near me or something like this. However I am not able get any reference of it. Its very confusing. I am not sure how to do it. Could anyone please guide me on this?
With some reading, maybe we have search data by passing key and data source ID however I am not sure how to create Data Source for Bing Maps.
You are looking for Points of Interest (POI) so you have to use Bing Spatial Data Services.
There are several Data Sources available:
FourthCoffeeSample which is a sample datasource
NAVTEQNA for POI provided by NAVTEQ for North America
NAVTEQEU for POI provided by NAVTEQ for Europe
etc.
Each DataSource has a different base URL:
FourthCoffeeSample: http://spatial.virtualearth.net/REST/v1/data/20181f26d9e94c81acdf9496133d4f23/FourthCoffeeSample/FourthCoffeeShops
NAVTEQNA: https://spatial.virtualearth.net/REST/v1/data/f22876ec257b474b82fe2ffcb8393150/NavteqNA/NavteqPOIs
NAVTEQEU: http://spatial.virtualearth.net/REST/v1/data/c2ae584bbccc4916a0acf75d1e6947b4/NavteqEU/NavteqPOIs
How to make a query? The syntax's documentation is available here
You may also be interested by some references:
EntityTypes list for NAVTEQEU and NAVTEQNA: https://msdn.microsoft.com/en-us/library/hh478191.aspx
There is also an example of use of these API here (in JS).

How to Reverse-GeoCode an array of Lat/Longs

I am looking for the ability in C# .Net to find the address from an array of Latitudes and Longitudes. My array would have something like the following (39.96481959995778, -83.00803899765015),(39.96575701532093, -83.00681591033936). From the coordinates i would get back all the address within that area. i appreciate any help with this.
This is called as Reverse-GeoCoding. You need to use a third party webservice (free or paid) that returns the user addresses on the basis of Lat/Long. Google has one like this See this on how to use google for this purpose.GEO CODING but there are other such services as well. You find one that is right for you. If you are using it in a commercial environment i guess you will have to purchase a license for that.

C# Google Maps Api - Using the API and Getting to Know If There Is a Way Between A and B

I am trying to code pathfinding algorithm by using Google Maps Api.
The project is an ASP.Net Web Application and I must get the shortest way between A and B but it is my job not Google Maps'.
I only need to ask Google Maps "Hey Google Is there a direct road between X and Y?" then need boolean type simple answer. (There is always a road between X and Y indirectly so Google Maps can say me the distance of road/path it is acceptable for me too).
My other question is "Is there any library for .Net to not need to use javascript or at least using javascript strings on .cs files not in aspx files?"
Thanks in advance and forgive me about my bad English.
For calculating route between two points you need Google Directions API. That will return you a result json/xml with distance and other details.
The Google Directions API is a service that calculates directions
between locations using an HTTP request. You can search for directions
for several modes of transportation, include transit, driving, walking
or cycling. Directions may specify origins, destinations and waypoints
either as text strings (e.g. "Chicago, IL" or "Darwin, NT, Australia")
or as latitude/longitude coordinates. The Directions API can return
multi-part directions using a series of waypoints
A request would be something like
http://maps.googleapis.com/maps/api/directions/json?origin=Boston,MA&destination=Concord,MA&waypoints=Charlestown,MA|Lexington,MA&sensor=false
You may wanna see this article on Code project: Google Maps API V3 for ASP.NET
For your 2nd part of the question, I am not sure what are you asking. You can use the above API in .Net irrespective of JavaScript

Need direction for getting started with a business profile site

I am building a new website, which you can see at http://www.kristalcapljina.99k.org.
While I have some web design experience, I need help in knowing what I should research to add some specific functionality to the site.
The first bit I want to add is an area where business owners can list their business' information, such as the address or contact information. They should also be able to login later to change the information. I assume this will need some sort of database, but don't know where to begin looking.
Second, I wish to add a map that highlights the locations of these businesses.
Any help direction you can give me to get started would be most appreciated.
You want to embed a Google Map onto your site, using the Google Maps API.

C# - Xbox Live Stat Grabber

I'm working on an xbl stat grabber. I have a problem I dont understand how to get the "gamer card"
Heres an example : http://www.youtube.com/watch?v=6HA-uz_v6A0&feature=related
I already have the avatar but I don't get how you can grab the stats and recent games...
You need access to the Xbox Live API, I think you have to apply to Microsoft to get on their 'Community Developer' programme, although it's a bit hazy on the site as to whether they are accepting applications or not.
One kind fellow (who I think is a Microsoft employee) saw that this was a terrible oversight from his employers decided to offer as web service that plugged into the Xbox Live network so you can pull statistics down, you can find info about it and a website here: -
http://duncanmackenzie.net/Blog/put-up-a-rest-api-for-xbox-gamertag-data
It's very comprehensive and should give you all the data you need (Gamerscore, current status, last game played etc)
EDIT: Extra stuff that might help
I'm not too familiar with C# but the process of using the service would be to do the following in your application: -
Construct your URL with a/your gamertag as the argument
Use some URL/Networking API (C#/.NET must have something like this somewhere) to load the URL and retrieve the contents. This should return you a big string containing a bunch of XML
Parse the XML into your application using some sort of XML parsing API (again, I'd imagine C#/.NET has these things built into the framework)
From the looks of the program, the gamercard info looks as if it is just an embedding based upon the gamer tag. You can find info on embedding your Xbox Live gamercard here.
The video author said the Halo stat information is coming courtesy of a site called HaloCharts.com. I don't know if he is embedding the information, perhaps reading an RSS feed, or if he is extracting data from the HTML.

Categories