Questions tagged [location]
Real-world geographic locations can be associated with Drupal entities.
318
questions
1
vote
0
answers
206
views
How to save lat/lon of author's location with node
I have a public node creation form that unauthenticated users will submit. I want to save the visitor's geographical location with the node that they create. I imagine capturing their lat/lon and ...
0
votes
3
answers
1k
views
Can't find custom block php code in the database
I've created a custom block in Drupal 7, to display, in the upper right corner on every page, a menu that is context sensitive. Based on certain user attributes some functionalities are enabled or ...
1
vote
2
answers
59
views
Dynamic locations in page content
My company website has several physical locations / branches that need to be referenced all throughout the website on basic pages.
I would like to create one central table with one instance of each ...
1
vote
1
answer
653
views
Importing shapefiles/kml
I need to add support for importing either kml file or shapefiles, preferably using feeds. The idea is that each record relates to a single node, and the file uploaded could contain hundreds of new ...
1
vote
0
answers
115
views
How to use a geolocation field from a flag to calculate proximity
I'm using the Flag module for the notifications system on my site. One of the notifications is supposed to be "Notify me when a new node is created near my location".
I added two fields to a flag: a ...
0
votes
1
answer
1k
views
D7 Location module proximity search
I want be able to have users search for other users based on distance. I thought I did it correctly but everytime I search I get no results.
Heres what I did:
Install location https://drupal.org/...
0
votes
3
answers
794
views
Where is my views-view-field.tpl.php and the other views templates
I can not find my vviews templates, where are they?
In my /modules/ I don't have a views sub dir and in /sites/all/themes/modules I have a sub dir called views_php which doesn't seem to contain the ...
0
votes
1
answer
290
views
Bulk update lat/long taxonomy terms
I have Province/City taxonomy with 5000+ terms.
I would like to add lat/long field or something and bulk update whole taxonomy so i can use it later for maps and proximity search.
1
vote
1
answer
2k
views
Current user geographical location [closed]
I am building a website which on the contact page will have a section to find your local sales representive. I intend to do this by having a content type of sales rep with a location field and ...
1
vote
1
answer
57
views
Migrating XML source twice, according to language
I am writing a scheduled import using the Migrate module, where I have an XML feed which gives me a number of reports.
These reports have most of their fields in common, but have two fields ("location/...
0
votes
0
answers
216
views
Locations updating only after saving a second time
Primary tabs
View(active tab)
Edit
Posted by P013370 on January 3, 2014 at 6:14pm
I updated the majority of my node's locations using feeds module. Everything was mapped and updated correctly. However,...
1
vote
0
answers
29
views
Email users on node creation based on location
I have location module install, which are referenced on both user and node (type: property). When a node (property type) is created, I need to email all users who have same location of node what ...
1
vote
1
answer
2k
views
How to show a map within a node using gmap and location modules
I'm trying to save a location together with the node of a certain content type and when the node is shown I want the location to show up on a map within the node content. I use the Gmap and Location ...
1
vote
2
answers
2k
views
How to add a Location field in drupal 7
I have my location module enabled but I cannot see a location field while creating a new form.How can I add location field to a content type.
0
votes
2
answers
522
views
How can I print render just location city in teaser view
Drupal 7
I am attempting to print just the city value within the location array.
I have created a content type with location and created a custom node template node--content.tpl.php. Inside of my if ...
1
vote
0
answers
335
views
Computed field with latitude/longitude
I made node with location field (track) and computed field. I want to measure distance between two points. In computed field is:
Computed Code (PHP) :
$longitude1= $entity->field_track[...
0
votes
3
answers
1k
views
How do I modify default labels of the location module?
How can I modify the field names of the location widget that I use to collect addresses and phone numbers. I am using Drupal 7 with the Location Module: https://drupal.org/project/location
Below a ...
1
vote
1
answer
93
views
How should I structure a node migration that has three locations?
I have a situation where I need to migrate a D6 node that has three location fields. The example code shown in the drupal module documentation ( https://drupal.org/node/2018113 ) isn't working. I ...
4
votes
1
answer
2k
views
How to make address1 field and zip code non required with Address Field module
I'm using Address Field module
I want to make it a required field but only the Country and City values. I want to leave the zip code and Address as optional. I don't find a way to configure it like ...
1
vote
0
answers
43
views
Is there any hook or way to modify the list of countries and states in the Location module?
I'm trying to change the Location module so instead of United Kingdom and its respectives counties, I could have England, North Ireland, Scotland and Wales, with their respectives counties. Do you ...
0
votes
2
answers
370
views
How can i limit the drop down list of countries in exposed filter?
I try to use the script https://drupal.org/node/1772498, but I don't get the right db_query for countries in the nodes. I change the script on these line:
$result = db_query("SELECT DISTINCT(l....
0
votes
1
answer
1k
views
Get locations search: Show all markers by default
I played around with the get locations module for drupal escpecially with the get locations search part.
Finally I got the thing working but I'm wondering now if it's possible to display by default ...
0
votes
0
answers
485
views
How can you check / validate the country in the Address Field + Commerce using the user's IP address?
We've got a UK based Drupal Commerce store and we'd like to:
Preselect the Address Field country, based on the user's IP
address
Not let the user continue unless the country they've selected matches ...
0
votes
2
answers
48
views
How to provide option to select geographic part for content
I'm working on Drupal6 travel website and stuck with how to provide option to users to select the right geographic part of the world that they are going to write story about that place.
Should I ...
0
votes
0
answers
46
views
How does drupal.org save users' locations?
On Drupal.org, when you go to the user profile edit page, there is an option:
Save my location
Your location will be saved and may be shared.
How is this implemented? Is this through a contributed ...
4
votes
1
answer
2k
views
Show markers on gmap from all nodes exposed in view
I'm using gmap module to mark job locations on a map. It now shows all locations of content type: jobs. Is there any way I can only mark the displayed jobs from my view block? I filter the jobs ...
1
vote
1
answer
878
views
Make GMAP api aware that the gmap has been resized
I'm using jquery and css to toggle my gmap between full screen and normal size. However, since the original height is 200px, when I press the full screen button, it only draws 200px of the map and the ...
0
votes
1
answer
64
views
Force Field Required based on Widget Type
I'm using the GeoField module to geocode fields for mapping on my site. There is an issue with the current stable release of this module.
If Widget Type is "Geocode from another field" this field ...
4
votes
1
answer
1k
views
Location proximity search using API
I have a small number of location nodes with geofields, and need to programmatically get the distance between a location and a zip code. It would be ideal if I could get a query, or a sort, of my ...
2
votes
2
answers
569
views
Accessing location field programmatically in Drupal 7, via hosting entity object and wrapper
I'm using Location module (particularly its Location CCK part) with Drupal 7. Added location field 'field_location' to User (as an example of hosting entity), and initialized location values for test ...
2
votes
1
answer
307
views
Proximity Search [closed]
So i'm trying to set up an online store kinda thing. The user uploads items and others see it in their news feed. I want items listed based on the location proximity of the user.
Say there are 3 ...
0
votes
1
answer
284
views
VIews Proximity Search Fields as Separate Block?
Just a quick question, or if someone can point me in the right direction...
I have a website that needs to have a search field where customers can enter a service (e.g. photography) in one field, and ...
0
votes
0
answers
597
views
How to upload location module zip codes for proximity search
This is driving me completely insane. I can't get the database to import to the zipcode table using phpMyAdmin. Looks like it is going, then a blank. Go to table and nothing. Trying to import the US ...
1
vote
0
answers
709
views
How can I use Gmap in Views Exposed filters
How can I use gmap in the view exposed filter ? So that user can search the result by marking the location on gmap.
I am using gmap 7.x-2.7 and location cck 7.x-3.0-rc2 .
How can I implement this ...
3
votes
3
answers
2k
views
Example of writing Latitude Longitude to a Geofield?
I need to write a lat/lon value to a Geofield and I can't figure out how to set the field. I would prefer to do this using EntityMetadataWrapper.
1
vote
0
answers
185
views
Gmap location with multilanguage site
I installed Gmap & Location modules to display nodes on google map, every thing is setup as what i want but the problem is:
when changing the site language the nodes disappear from the map, the ...
1
vote
1
answer
3k
views
How to render a Get Locations map programmatically?
I'm using Get Locations module and the getlocations_fields submodule. I have a content type where I created a "Getlocations Fields" field, this way I can select locations when adding/editing content. ...
0
votes
1
answer
743
views
how to call/using geofield in a custom module
I`m trying to use the geofield module, and load it with google maps widget in one my custom forms.
Yet i can't find any way to use the form api to display this field.
$form['geofield'] = array(
'#...
0
votes
2
answers
4k
views
Locations geocoding to province, not country [closed]
I previously asked a question but since have done much research and am getting more focused on my problem.
I have a locations cck field in a profiles 2 profile. Here, I get users to select just ...
2
votes
1
answer
388
views
How do I show Device Geolocation share location prompt only on specific pages?
I am working with the Device Geolocation module packed with Smart IP. I got all the functionality working great, but I would prefer if the prompt to share your location wasn't given on every page of ...
2
votes
1
answer
2k
views
Geocoder not working with “Geocode from another field”
I'm trying to make Geocoder work but encountered the following issue: I installed Geocoder 7.x-1.2, and I want to use it with content from another field, namely Location 7.x-3.0-rc2. I installed ...
0
votes
0
answers
57
views
Subscriptions depending addressfield field
I have a events web page based on Drupal 7.Each of the events has a adressfield field.
Now I need add a subscriptions functionality. I need each user can subscribe to the events taking place in one ...
-1
votes
1
answer
623
views
Openlayers is not showing markers
I'm using openlayers module with geofield. The markers are showing fine on the views preview and all looks good. but when viewing the display page through it's path the markers don't show. Any ideas ?
...
2
votes
0
answers
166
views
Show nearest locations(market, bus stand etc) of the search result(s) on Gmap Drupal 6
I am using view(style:map) to show search result on Gmap. It works fine but i need to show nearest locations(market, bus stand etc) of the search result(s). How do I do that?
it is fine if I will get ...
1
vote
1
answer
388
views
Drupal 7, Looking for a module that can geo-locate a user and feed them specific data?
I'm trying to build a site where I can geo-locate anonymous users when they visit the site and feed them the appropriate data.
Example: I want to display a certain block if the anonymous user's IP is ...
1
vote
3
answers
609
views
How to reduce options for units of measurement to just miles and km for proximity search
Using geofield with Views and exposed filters to the user to search for things on the map within a certain radius of a particular location.
I only require miles and kilometres as units of measurement,...
0
votes
1
answer
227
views
Make Openlayers center & bounds context aware
I'm creating geospatial database for multiple municipalities. Each should be able to work in it's own context (not only see only own data, but also have custom center & bounds for input and output ...
0
votes
2
answers
1k
views
Importing location data into Drupal 7
New to Drupal but am interested in it as an option to transition to from a hand coded site. This site is primarily a location searchable venue index, with venues having various categories.
In Drupal ...
1
vote
1
answer
2k
views
View to display nodes with lat long in proximity of specific lat long
I have a content type and it has a geolocation field which stores a lat long . If I create one node with some lat / long info, I need to look up / show a view of other nodes that have lat long ...
3
votes
0
answers
327
views
Creating a custom views filter handler with a non-sql query
So, I'm working on a custom views handler that will allow users to filter based on field comparisons.
I've overridden the operator to use my own function defined elsewhere in the module that ...