geocoding

2 Google Maps working with geocoding on same page

ⅰ亾dé卋堺 提交于 2019-12-06 16:03:54
I am using Google Maps to geo code an address and populate that information into an input field. I can do this successfully for 1 map, but I need to have 2 maps on my page. Each having their own geo-coding information. I have attempted to put the Javascript code together, essentially duplicating my first map. My JavaScript is as follows <script type="text/javascript"> var geocoder; var map; function initialize() { geocoder = new google.maps.Geocoder(); var latlng = new google.maps.LatLng(53.2948557, -6.139267399999994); var mapOptions = { zoom: 10, center: latlng, mapTypeId: google.maps

How to parse the result returned by Google Geo Coding API in Objective C

亡梦爱人 提交于 2019-12-06 15:24:39
问题 I am working on one iPhone app which needs latitude and longitude from address. I am using Google Map API for Geo coding but I could not able to parse the result returned by it. Result is in Json format and all I want form that result is Latitude and Longitude. I tried to look over earlier posts and available API but it did not worked out. Can any one help me out here ? Following is the string returned by the Google Request. "results" : [ { "address_components" : [ { "long_name" : "15220",

Extracting Distance from FacetWP Proximity Function to Display in Wordpress Template

让人想犯罪 __ 提交于 2019-12-06 14:32:40
I am quite new to Wordpress & Php coding in general, I have a relatively simple theme that I have been working with that contains a custom post type that stores latitude and longitude. Each post is a listing a hotel listing within a directory. The theme I am using also integrates with FacetWP the faceting plugin for WordPress. It is possible for the user to search the site by typing a location of locating themselves, this happens using Googles Mapping functionality. When the search is submitted parameters are passed to an archive page: http://localhost:8888/wowgoddess/listings/?fwp_location=43

How to get the latitude and longitude from city name in android?

。_饼干妹妹 提交于 2019-12-06 14:21:36
问题 In my application am setting a default value to latitude and longitude . When i type the cityname in edittext i need to move that point to that place where i need 回答1: Use the below code to get the lat and long of city name String location=cityName; String inputLine = ""; String result = "" location=location.replaceAll(" ", "%20"); String myUrl="http://maps.google.com/maps/geo?q="+location+"&output=csv"; try{ URL url=new URL(myUrl); URLConnection urlConnection=url.openConnection();

How to represent geographical locations

梦想的初衷 提交于 2019-12-06 13:29:38
问题 I make the user interface appear adding integration with facebook and enabling combining a search with a category and a location: This poses some problems to me not only with the facebook integration but also with locations. I don't fetch the locations from the datastore, I just put them in plain html: <select name="w" id="searcharea"> <option value="1" >Entire India</option> <option value="2" > Andaman & Nicobar Islands</option> <option value="3" > Andhra Pradesh</option> etc. We see that

How can I determine a CLLocation or MKPlacemark from an address?

眉间皱痕 提交于 2019-12-06 12:35:34
问题 I've seen API documentation and demo after demo on how to do a reverse geocode - to get an address, given a Lat/Long location. I need to do the reverse. I'm assuming that this is already solved problem since Apple's MapKit API avoids it entirely. 回答1: One way is to use the google webservice like so: -(CLLocationCoordinate2D) addressLocation { NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps/geo?q=%@&output=csv", [addressField.text

How to use Geocoding API v3 in Classic ASP

孤街浪徒 提交于 2019-12-06 12:29:33
wondering if anyone could help me. I'm trying to return the results of lat and lng of an address. New to coding and have got stuck. The following code worked fine until the Geocoding went from v2 to v3. Can you tell me where I'm going wrong? and do I need a new v3 key or key at all? Thanks in advance. <% Function GetXML(url) Dim xmlobj Set xmlobj = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0") xmlobj.setTimeouts 30000, 30000, 30000, 30000 xmlobj.Open "GET", url, False xmlobj.send() If xmlobj.status = 200 Then GetXML = xmlobj.responseXML.xml Else Response.Write "The geocoding server could not

Geocoding API issue ZERO_RESULTS in api response but works in browser

╄→гoц情女王★ 提交于 2019-12-06 11:48:21
we are using the standard license for Geocoding APIs and we observed that there are some intermittent issue with the service response, we get ZERO_RESULTS from API but when we use the same address in browser it works and gives us OK status and it happened for multiple address during that time. but after sometime it started working again. so i am confused if there was down time today between 9 AM 11:30 AM PST. i checked the console developer dashboard also and i didn't find any error/latency reported by google. i checked the quata also and we just used only 1.5% of daily limit. here is code

Geocoding Multiple Locations - Knowing When “All” Completion Blocks Have Been Called

梦想的初衷 提交于 2019-12-06 11:29:39
I am using the CoreLocation's geocoder to get the CLLocation coordinates for multiple map items. The geocoder calls a completion block on completion for each item. How do I create a similar block functionality which is called when all of these containing asynchronous geocoder calls have been completed? (I could use a manual counter. But there must be a more elegant solution) Here's my geocoding function so far. It loops through an array of location items and starts a new geocoding process for each. -(void)geoCodeAllItems { for (EventItem* thisEvent in [[EventItemStore sharedStore] allItems]) {

How to translate a given coordinate into a bounding box of “diameter” x?

て烟熏妆下的殇ゞ 提交于 2019-12-06 11:17:19
For example, I have a latitude and longitude in decimal format (as opposed to Degrees-Hours-Minutes like lat=44.1° 9.5' 30''). To search for nearby objects, I must specify the search "radius" as a rectangle with four values: north = 44.1; south = -9.9; east = -22.4; west = 55.2; Is there a formula or rule of thumb how to convert decimal lat/long values into a rectangular bounding box, such that the given latitude/longitude is in the center of that box? Must I fiddle around myself with a WGS84 ellipsoid algorithm or are there open solutions to the problem? I had exactly this problem and the