I am trying to change the length and latitude using the Geocoding API by using this code
< Pre> Protected Zero Button 1_Click (Object Sender, EventErgus E) {IGOcoder Geocoder = New GoogleGeocoder () {}; Address [] addresses = geocoder.Geocode ("# 65/1 Bangalore"). ToArray (); Foreign (address address address) {Answer. Vertex ("address:" + + ads); }}
The answer did not know me more detailed latitude and latitude. For this code, for example, please send me a
address: Hari Om Trust
Please tell me what amendment to do so that I get longitude and latitude Can i do Code for Googlegeocoder
#region assembly Geocoding.dll, v3.1.0.0 / / c: \ user \ administrator \ document \ visual studio 2012 \ websites \ Using learn1 \ bin \ Geocoding.dll #endregion Geocoding; Using the system; Using System.Collections.Generic; Using System.Net; Using System.Threading; System usage threading. Task; Nameshot Geocoding. Google {public class GoogleGeocoder: IGeocoder, IAsyncGeocoder {public GoogleGeocoder (); Public string apiKey {get; Set; } Public Bounds Bounds {Received BIS; Set; } Public BusinessKey BusinessKey {get; Set; } Public string language {get; Set; } Public WebProxy Proxy {get; Set; } Received Public String Area BIS { Set; } Public String ServiceUrl {get; } Public IEnumerable & lt; GoogleAddress & gt; Geocode (string address); Public work & lt; IEnumerable & lt; GoogleAddress & gt; & Gt; GeocodeSync (String Address); Public work & lt; IEnumerable & lt; GoogleAddress & gt; & Gt; GeocodeSync (string address, cancellation token cancellation token); Public IEnumerable & lt; GoogleAddress & gt; Reverse jcode (location location); Public IEnumerable & lt; GoogleAddress & gt; Reverse gcode (double latitude, double longitude); Public work & lt; IEnumerable & lt; GoogleAddress & gt; & Gt; Reverse GeocodeSync (double latitude, double longitude); Public work & lt; IEnumerable & lt; GoogleAddress & gt; & Gt; Reverse GeocodeSync (double latitude, double longitude, cancellation token cancellation token); Protected class RequestState {Public Cancellation Token? CancellationToken; Public readonly requesting HttpWebRequest; Public RequestState (HttpWebRequest request, cancellation token? Cancellation token); }}}
Ah ... quite simple in fact:
< Previous> Protected Zero Button 1_Click (Object Sender, EventArgs e) {IgOcoder GeoCoder = New GoogleGeocoder () {}; Address [] addresses = geocoder.Geocode ("# 65/1 Bangalore"). ToArray (); Foreign address address address (Response. White ("Address:" + + ads. Cordurates);}}
Cheers
Edit: The reason is that you Only because of the address of the address of a street address. String () is being called by default in your loop.
Comments
Post a Comment