Iterating thro' a set of addresses - Geocoder Service - geocoding

I have a set of addresses in string format. I need to get the lat/long position information for each of those addresses using Geocoder service. Unfortunately, iterating thro' the set of addresses is not giving me the expected result in the registered callback.
Is there is a better way to get the lat/long info of the address set?
My question is similar to :
http://code.google.com/apis/maps/documentation/javascript/forum.html?place=topic%2Fgoogle-maps-js-api-v3%2F4l6BkdzmHOo%2Fdiscussion
TIA for any suggestions.

Found the answer that worked for me:
http://code.google.com/apis/maps/articles/phpsqlgeocode.html#samplecode
Thanks.

Related

Best way to validate address with geocode?

In my project I have to use geocode to validate user input address fields. This includes Address, City, State, and Zip. When user entered value those information are sent to geocode server as http parameters. The return result is xml file content. I use ColdFusion 2018 as my back-end programming language. I'm able to navigate through the document and get to the section that contains data. Here is example of what I get back from geocode:
As you can see in the image above I will get the information with overall correctness of the address. My question is how this should be handled and presented to the user before I save data? Should I display the returned data back and tell them that address is 100% correct like in this case or maybe if address is not 100% show them the address as suggestion? I'm not sure which approach is the best way to go and I never used geocode before. Any help would be greatly appreciated.

How to provide autocomplete street addresses functionality in django?

Is there any way to provide automatic street address suggestion when user tries to enter their address in the input box using so they start getting automatic address suggestions in django.
I was searching autocomplete light but could not find specially anything related to that.
I've implemented this functionality with Google's Place Autocomplete. The sample code in the link is pretty spot on from memory.
https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform
You could use python to make the requests yourself and implement some light javascript to fill your inputs:
This will return you a list of predictions based on the input address you supply. You just need an address and your API key to run the query, but note in my example I'm using the components/types parameters as well.
here's the documentation: https://developers.google.com/maps/documentation/places/web-service/autocomplete
url = f'https://maps.googleapis.com/maps/api/place/autocomplete/json?input=<address>&components=country:us&types=address&key=<your key>'
r = requests.get(url)
predictions = r.json()['predictions']
for p in predictions:
print(p['description'])
print('-----------------------')

How to get Facebook Page ID from Page URL

I need to get the Page ID from the Page URL. This is NOT from inside a page tab, that's easy. This is similar to what is being done here: http://findmyfbid.com
Any help would be appreciated as I have been searching for over an hour! Bonus points for showing how to do this in classic ASP. I have no issue getting signed requests & parsing them, the URL to ID portion is what is throwing me.
thanks :)
As noted above in 1st answer commments, that does work, but it's not the data that we want since it's an external url. THIS is the correct way to do it:
https://graph.facebook.com/v2.5/cocacola?access_token=[yourtoken]
OR
This works too:
https://graph.facebook.com/v2.5/https://www.facebook.com/cocacola?access_token=[yourtoken]
This is the way to do it: https://developers.facebook.com/docs/graph-api/reference/v2.0/url
if you are using a GET request, be sure to append access_token=appid|appsecret to the URL you are requesting and it will work.
Thanks for the tip to point me in the correct direction Alex!

how to get network bytes sent /received values specific to every MAC address

I have a problem in which I have to figure out how many network bytes are sent / received through every interface. This data is to be known for interfaces that have a valid mac address.
Step 1: I will obtain set of valid interfaces with mac address from win32_NetworkAdapterConfiguration class using "where ipenabled = true" condition.
Step 2: I then need to find bytessentpersec, currentbandwith etc. For this I can use Win32_PerfRawData_Tcpip_NetworkInterface but this has no field that is common with any of the fields of the above class to associate these values to a macaddress. Even though the name and description fields of both class see
Please help to resolve this issue. Is there any kind of option to solve this?
Regards,
Sudarshan
Microsoft IP Helper Functions

Where are Exchange Web Services: ExtendedPropertyDefinition IDs defined?

In researching how to use Exchange Web Services, I see examples like this
Dim PR_DELETED_ON As New ExtendedPropertyDefinition(26255, MapiPropertyType.SystemTime)
Dim PR_SEARCH_KEY As New ExtendedPropertyDefinition(12299, MapiPropertyType.Binary)
That first parameter is an int that represents the property ID. Can anyone give me a pointer to where those ID numbers are defined?
Those are called Microsoft Exchange Property Tags and can be found here
Have a look at Outlook Spy. It can tell you those numbers. There is a screen shot on that site that shows how to get them.