Questions tagged [location]

Real-world geographic locations can be associated with Drupal entities.

Filter by
Sorted by
Tagged with
1
vote
0answers
27 views

Creating a Block view for Other nearby stores

I want to create a block to display all nearby commerce stores . I have setup a view of type commerce store . Inside the View I have displayed fields. In contextual filter "WHEN THE FILTER VALUE ...
1
vote
0answers
65 views

How to show appropriate country name in location module in multiplanguage sites?

Neither with i18n nor with entity translation switcher the country names are correct. E.g. in a German/English site the country names should be Deutschland and Germany when the language is switched. ...
1
vote
1answer
123 views

How to add a Google Maps containing GeoRss Feeds on a page - don't know exactly what module to use

I have developed a Google maps following the example from https://developers.google.com/maps/documentation/javascript/examples/layer-georss but I am new to Drupal and I don't know how to include it on ...
2
votes
0answers
37 views

GeoRss feeds in Drupal 7 not displayed

I have build a map in ArcGis online containing GeoRss feeds and I am trying to display it in my website. I used the webmap module but the GeoRss feeds are not displayed. Do you have any suggestions ...
0
votes
1answer
20 views

What permissions affect fields attached to taxonomies that don't affect fields attached to content types?

On a D7 site, I created a Description field (using filtered text with ckeditor) and a Geolocation field using a Googlemap widget. I attached them to a content type called Accommodation, and they ...
0
votes
1answer
104 views

Best way to unpublish a node, given the nid, while bypassing any node update hooks?

To unpublish a node, I set status=0 and call node_save(). Unfortunately, this invokes the Geocoder module and it sends a request to the Google API for a geocode that I already have. There is ...
0
votes
1answer
226 views

How can I access location information via rules, to include the City of a node in an email?

I have a rule, which works like this: After saving new content, Fetch users who have flagged a Taxonomy term, Loop, send email. The emails get sent perfectly, to users who have flagged the specific ...
0
votes
1answer
255 views

Exposed proximity filter in geofield required, but still gives result

I've made a view with geofield proximity search. The user needs to fill in a location before I want to show result. So I made the exposed filter required: But the view gives result, even when ...
1
vote
0answers
80 views

How use geofield_openlayers in custom module

I'm writing a drupal custom module, in my form I need a geofield with openlayers map widget. I can create a geofield_openlayer by using Content type, but I don't know how can I create the field in my ...
1
vote
0answers
66 views

Latitude/Longitude processing to avoid Null Island entries

I have to display some 8k points on a map rendered by a view on my site. Since those locations will be updated quite often i decided to use a custom entity (lets call them "Structures"), so i could ...
1
vote
1answer
251 views

How do I show the weather block based on Geofield on a Taxonomy Term

The Weather module has a block to show weather based on IPs on a node defined by the geofield module. There doesn't seem to support if it is on a taxonomy term. How can I modify this code to support ...
0
votes
2answers
405 views

Filter by postal code as location within user defined radius

I have to make a filter in which user will add postal code and select a radius. Suppose, user entered postal code = 12345 (which results into city 'XYZ') and the radius of 200 miles. So all nodes ...
0
votes
0answers
69 views

Is it possible to run hook_field_presave after hook_entity_presave?

I am using Drupal 7. I use hook_entity_presave() to manipulate geofield data. The geofield module has a hook_field_presave() function, that calculates various data for the field. My problem is, that ...
0
votes
1answer
491 views

Create view to display a Gmap for locations on node you are currently viewing

I am using Gmap 7.x-2.9 and Location 7.x-3.6 on my Drupal 7.34 site. I have setup a custom content type for "Locations". So if I, for example, added a new Location called "California" I could add in ...
1
vote
1answer
513 views

Fixing identical Latitude/Longitude data for markers on maps (bug)

I have a Drupal 7 project that I want to add location information (latitudinal/longitudinal) to most of my content types. Currently I have noticed that if there are multiple nodes that are shown on a ...
3
votes
0answers
448 views

How to use location distance / proximity filter with facet search api

I am using location, gmap, facet api modules and I have created search page for node with facet api. I want to use distance / proximity filter for facet search but I didn't get distance / proximity ...
0
votes
1answer
458 views

Geofield From another field showing only after saving from form

I am programmatically creating nodes with a Field Collection that contain a geocoded field, the field where i take the data from for the geocoding is a computed field (i have already applied this ...
1
vote
1answer
35 views

Different rankings in a view based on geolocation

I'm currently building a site which has a ranking table. I'd need the rankings to be different based on geolocation so what i'v done so far is building a different view for each country. So the ...
0
votes
2answers
811 views

Location Proximity Search using db_select in Custom Module

I want to build a custom block which uses the nid of the node it's visible on to pull in nodes within a radius of 50 miles based on it's geolocation. I am using the location module and gmap where ...
0
votes
1answer
74 views

View will not display taxonomy location information

I have a taxonomy that contains information about event venues. I am using the location module to add locative information to these taxonomy terms. I've created a view so that I can see all my venues ...
-1
votes
1answer
56 views

Collecting user and node locations seperate or combined?

In my drupal site i like to have the location of users stored as well as the location of nodes. To store these locations i am using Geofield in combination with adressfield. Adressfield collects the ...
0
votes
1answer
510 views

Location taxonomy

I want to add a location to my products/articles in 2 different ways : -user enters a town (linked to a taxonomy) -> I know how to do it -user enters a county which is automaticly linked to a ...
0
votes
2answers
916 views

Unable to set the data property xxx as the parent data structure is not set

I currently use geofield to set latitude and longitude but rules gives me this error: 0 ms Unable to modify data "user:field-coordonnees:lon": Unable to set the data property lon as the parent data ...
2
votes
1answer
270 views

Views Eposed filter - proximity search, include content without a postal code

I have a proximity search set up using gmap location by postal code. Using Drupal 7/Views 3. The exposed filter allows the user to filter by (taxonomy)type and/or postal code. This is what I need ...
1
vote
0answers
16 views

ge7Locations-7.x-1.13 does not show in the modules administration in Drupal 7.31

Installed getlocations-7.x-1.13 on the sites/all/libraries/ but it does not show in the modules or administration/configuration/services what to do? Thanks
1
vote
1answer
91 views

How to copy address on node translate action

My website is an i18n web site. When it's time to manage content with a location field (address) I need to manually copy the address. Is there a way to make the location copy automatically on ...
1
vote
1answer
521 views

geofield and leaflet maps: how to show proximity-originator on map?

My Goal: Show a hotel on a map, together with nearby restaurants. Currently, i have only a table, based on a view with the hotel's node-id as contextual filter. Now i'd like to put all that in a map....
1
vote
0answers
909 views

open pop up window on map marker from outside map canvas after click an anchor tag in drupal 7 using gmap, location

I have installed location module, gmap module and views created nodes of article type say 5 node with their location filled in. created a views selecting gmap as display. my nodes are listed on maps ...
1
vote
2answers
104 views

Need a solution to search by sales person based on unique territory

I've been researching for hours for a solution, but I can't find a module or example of someone else needing this feature. I have a list of 20-ish sales people, each person is assigned a range of ...
0
votes
0answers
262 views

How to declare a field in a custom entity as a geofield for leaflet views integration

I am trying to use leaflet with a custom entity that has geocodes in them. Below is the custom entity called Places. function places_schema() { $schema = array(); $schema['Places'] = array( '...
0
votes
1answer
87 views

$node object not populating with data

I'm using the Rules module to execute custom PHP script whenever a new node is saved after importing via Feeds module. <?php $lid = db_insert('location')->fields(array( 'additional' => ...
2
votes
1answer
93 views

Ask visitor if he want to view page on his language

I use Internationalization module on Drupal 7 for multi-language content and my default language is English and I have one more language. The thing I have to do is: To check if visitor is from ...
1
vote
1answer
59 views

Machine readable coordinates to Geofield

I got a long txt file full of cordinates. Like this for every line; {"RT**n":"*****","RT**o":"*******","WGS**_lat":"******","WGS**_lon":"******" } There are numbers, I just hide them since this is ...
1
vote
1answer
322 views

How to format Computed Field as WKT (geofield CCK) with display code

I'm pretty green here. This is my first question! I am using computed field to calculate a WKT (Well known text) geofield using the geocoder API. This calculation is being done correctly, giving a ...
1
vote
1answer
1k views

How obtain the Distance/Proximity between 2 fields?

I am working on a project (Omega subtheme) with Panels and Views. I'm trying to create a list of local secondary schools and their distance from a few locations. Installed Location Module, enabled it,...
0
votes
1answer
451 views

Multiple points openlayers geojson display only the last of it

I made a module retrieving data with geodata. The import feature allows to create a file in geojson. So, i'd like to display the points and the data without using Views, only openlayers module. I saw ...
1
vote
3answers
447 views

Location Module and Search api

I am using the Location Module to add a location to a field on a content type I am then using Views and Search Api to create an index and a view of this content type. The problem I have is that I ...
1
vote
2answers
457 views

Display driving distance between coordinates

I have working a site that needs mileage given between user coordinate and node coordinate. using location module. I thought it was returning wrong results, when I discovered it returns actual miles "...
1
vote
2answers
287 views

Way to Configure IP Geolocation Views & Maps Module via Script

The module IP Geolocation Views & Maps has a ton of great features. By default, the data collection option: Employ the Google Maps API to reverse-geocode HTML5 visitor locations to street ...
0
votes
2answers
624 views

How to update Geofield using a custom form and DrupalGap's node_save?

The code below successfully updates the title, but does not update the Geofield. The node_save function is provide by DrupalGap and described here http://api.drupalgap.org/node.js_.html var ...
4
votes
2answers
631 views

How to restyle GeoField's proximity filter controls?

Background I am using the modules: geocoder geofield addressfield geophp ip_geoloc libraries to create a store locator view. The user can search the available stores using an exposed GeoField ...
0
votes
1answer
252 views

Views: Display users with a gmap attachment

I have location, gmap and profile2 modules installed on my site. In a profile type I have added a location field so that the user can add his/her location on profile edit. I want to display all users ...
0
votes
2answers
40 views

Drupal services add location

I am trying to add a location to a node using Drupal services. This is the JSON sent to the service { "node":{ "type":"restaurant", "title":"Restaurant from JSON API", "...
1
vote
0answers
502 views

Update existing data in a content type from JSON file in Drupal

I have to import Latitude and Longitude data in to a Geofield that was added to an existing Content type. Source Info The json feed contains a lot of data fields including the Longitude, Latitude ...
2
votes
3answers
2k views

How do I have points and polygons in the same Leaflet map?

I have two content types Location that geocodes an addressfield to place markers on the map Boundary that uses a geojson field to create complex shapes on the map I need to use views to show both ...
0
votes
2answers
353 views

How do I do custom shapes (Complex Multipoint Geometry) using Geofield and Leaflet?

I need to create regional boundaries using Geofield 2.x and Leaflet. How gan I go about doing this? I have tried using Leaflet Widget for Geofield but it currently doesn't support the 2.x version of ...
0
votes
1answer
522 views

How to configure gmap in template file

I override node display for content type Match Fixtures by creating node--match-fixtures.tpl.php file and put code below: <?php $location = $content['field_stadium'][0]['#locations']; $stadium_map ...
1
vote
0answers
198 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 ...
2
votes
1answer
613 views

Get JSON geolocation data into Google Maps Module [closed]

I have some JSON data with lat/lon values. I'm trying to plot these points on a google maps module. Which google maps module should I use and what is the easiest way to go about this? Thanks
0
votes
3answers
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 2
3
4 5
7