is it possible to extract the LAT/LON of a location determine the zipcode and automatically insert it into a block?
what I would like to do is use the accuweather service to offer weather forecasting based on a gmap node.
so if the code i am trying to adjust looked like this... (very rough example)
could I have the zipcode auto populate from the gmap location?
or if this is the wrong path does anyone have an Idea on how I COULD do that...
Comments
Comment #1
yesct commentedSo you have locations that have the lat/lon filled in, and you want the zip code field to be filled in based on that when saving the node?
Then you want to use the zip code in a block with the accuweather service, or the like?
Post back to make sure we understand your request. I'll mark this as postponed, needs more info, for now.
For the second part, you might look into using location_load_location to access the zip code field of the currect node.
For the first part, it is similar to other requests I have been tagging with location validation, so I'll tag this one with that tag too.
Another thing to look at might be the hierarchial select issues, but I have not studied HS yet to know for sure if that is related to what you want.
Comment #2
yesct commentedopps. Tagging.
Comment #3
yesct commentedclosed. no one has responded. if someone has more information, please update the status to reopen it. thanks.